File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ set term pdfcairo fontscale 0.65 noenhanced
2+ ! python pasteandrotate.py > gbps.txt
3+ set output " gbps.pdf"
4+ set boxwidth 0.8
5+ set style fill solid
6+ set ylabel " parsing speed (GB/s)"
7+
8+
9+ # set style line 80 lt rgb "#000000"
10+
11+ # Line style for grid
12+ set style line 81 lt 0 # dashed
13+ set style line 81 lt rgb " #808080" # grey
14+
15+ set grid back linestyle 81
16+ set border 3 back linestyle 80 # Remove border on top and right. These
17+ # borders are useless and make it harder
18+ # to see plotted lines near the border.
19+ # Also, put it in grey; no need for so much emphasis on a border.
20+ set xtics nomirror
21+ set ytics nomirror
22+
23+ set yrange [0 : ]
24+ set for mat y " %0.1f" ;
25+ set style data histogram
26+ set style histogram cluster gap 1
27+
28+ # set style line 1 lt rgb "#A0A0A0" lw 1 pt 1 ps 1
29+ # set key autotitle columnhead
30+
31+ color1 = " #ff0c18" ;color2 = " #000000" ; color3 = " #0c24ff" ;
32+ set xtic rotate by 300 scale 1
33+
34+ plot " gbps.txt" using 2 :xtic (1 ) title " simdjson" linecolor rgb color1 , \
35+ " " using 3 title " RapidJSON" linecolor rgb color2 , \
36+ " " using 4 title " sajson" linecolor rgb color3
Original file line number Diff line number Diff line change 1+ import os
2+ import csv
3+ import pandas as pd
4+
5+ def getdata (filename ):
6+ df = pd .read_csv (filename , delim_whitespace = True )
7+ return (df ["gb_per_s" ].tolist ())
8+
9+ ourdir = os .path .dirname (os .path .realpath (__file__ ))
10+ answer = []
11+ for file in os .listdir (ourdir ):
12+ if file .endswith (".table" ):
13+ fullpath = os .path .join (ourdir , file )
14+ answer .append ([file [:- 6 ]]+ getdata (fullpath ))
15+ print ("#simdjson RapidJSON sajson" )
16+ answer .sort ()
17+ for l in answer :
18+ print ("\t " .join (map (str ,l )))
Original file line number Diff line number Diff line change 1+ set term pdfcairo fontscale 0.65 noenhanced
2+ ! python pasteandrotate.py > gbps.txt
3+ set output " gbps.pdf"
4+ set boxwidth 0.8
5+ set style fill solid
6+ set ylabel " parsing speed (GB/s)"
7+
8+
9+ # set style line 80 lt rgb "#000000"
10+
11+ # Line style for grid
12+ set style line 81 lt 0 # dashed
13+ set style line 81 lt rgb " #808080" # grey
14+
15+ set grid back linestyle 81
16+ set border 3 back linestyle 80 # Remove border on top and right. These
17+ # borders are useless and make it harder
18+ # to see plotted lines near the border.
19+ # Also, put it in grey; no need for so much emphasis on a border.
20+ set xtics nomirror
21+ set ytics nomirror
22+
23+ set yrange [0 : ]
24+ set for mat y " %0.1f" ;
25+ set style data histogram
26+ set style histogram cluster gap 1
27+
28+ # set style line 1 lt rgb "#A0A0A0" lw 1 pt 1 ps 1
29+ # set key autotitle columnhead
30+
31+ color1 = " #ff0c18" ;color2 = " #000000" ; color3 = " #0c24ff" ;
32+ set xtic rotate by 300 scale 1
33+
34+ plot " gbps.txt" using 2 :xtic (1 ) title " simdjson" linecolor rgb color1 , \
35+ " " using 3 title " RapidJSON" linecolor rgb color2 , \
36+ " " using 4 title " sajson" linecolor rgb color3
Original file line number Diff line number Diff line change 1+ import os
2+ import csv
3+ import pandas as pd
4+
5+ def getdata (filename ):
6+ df = pd .read_csv (filename , delim_whitespace = True )
7+ return (df ["gb_per_s" ].tolist ())
8+
9+ ourdir = os .path .dirname (os .path .realpath (__file__ ))
10+ answer = []
11+ for file in os .listdir (ourdir ):
12+ if file .endswith (".table" ):
13+ fullpath = os .path .join (ourdir , file )
14+ answer .append ([file [:- 6 ]]+ getdata (fullpath ))
15+ print ("#simdjson RapidJSON sajson" )
16+ answer .sort ()
17+ for l in answer :
18+ print ("\t " .join (map (str ,l )))
You can’t perform that action at this time.
0 commit comments