Figures.
This commit is contained in:
parent
0f9fab1d4f
commit
bb83ad47a4
|
@ -0,0 +1,36 @@
|
||||||
|
set term pdfcairo fontscale 0.65 noenhanced
|
||||||
|
! python pasteandrotate.py > gbps.txt
|
||||||
|
set output "gbps.pdf"
|
||||||
|
set boxwidth 0.8
|
||||||
|
set style fill solid
|
||||||
|
set ylabel "parsing speed (GB/s)"
|
||||||
|
|
||||||
|
|
||||||
|
#set style line 80 lt rgb "#000000"
|
||||||
|
|
||||||
|
# Line style for grid
|
||||||
|
set style line 81 lt 0 # dashed
|
||||||
|
set style line 81 lt rgb "#808080" # grey
|
||||||
|
|
||||||
|
set grid back linestyle 81
|
||||||
|
set border 3 back linestyle 80 # Remove border on top and right. These
|
||||||
|
# borders are useless and make it harder
|
||||||
|
# to see plotted lines near the border.
|
||||||
|
# Also, put it in grey; no need for so much emphasis on a border.
|
||||||
|
set xtics nomirror
|
||||||
|
set ytics nomirror
|
||||||
|
|
||||||
|
set yrange [0:]
|
||||||
|
set format y "%0.1f";
|
||||||
|
set style data histogram
|
||||||
|
set style histogram cluster gap 1
|
||||||
|
|
||||||
|
#set style line 1 lt rgb "#A0A0A0" lw 1 pt 1 ps 1
|
||||||
|
#set key autotitle columnhead
|
||||||
|
|
||||||
|
color1 = "#ff0c18";color2 = "#000000"; color3 = "#0c24ff";
|
||||||
|
set xtic rotate by 300 scale 1
|
||||||
|
|
||||||
|
plot "gbps.txt" using 2:xtic(1) title "simdjson" linecolor rgb color1, \
|
||||||
|
"" using 3 title "RapidJSON" linecolor rgb color2, \
|
||||||
|
"" using 4 title "sajson" linecolor rgb color3
|
Binary file not shown.
|
@ -0,0 +1,18 @@
|
||||||
|
import os
|
||||||
|
import csv
|
||||||
|
import pandas as pd
|
||||||
|
|
||||||
|
def getdata(filename):
|
||||||
|
df = pd.read_csv(filename, delim_whitespace=True)
|
||||||
|
return (df["gb_per_s"].tolist())
|
||||||
|
|
||||||
|
ourdir=os.path.dirname(os.path.realpath(__file__))
|
||||||
|
answer = []
|
||||||
|
for file in os.listdir(ourdir):
|
||||||
|
if file.endswith(".table"):
|
||||||
|
fullpath = os.path.join(ourdir, file)
|
||||||
|
answer.append([file[:-6]]+getdata(fullpath))
|
||||||
|
print("#simdjson RapidJSON sajson")
|
||||||
|
answer.sort()
|
||||||
|
for l in answer:
|
||||||
|
print("\t".join(map(str,l)))
|
|
@ -0,0 +1,36 @@
|
||||||
|
set term pdfcairo fontscale 0.65 noenhanced
|
||||||
|
! python pasteandrotate.py > gbps.txt
|
||||||
|
set output "gbps.pdf"
|
||||||
|
set boxwidth 0.8
|
||||||
|
set style fill solid
|
||||||
|
set ylabel "parsing speed (GB/s)"
|
||||||
|
|
||||||
|
|
||||||
|
#set style line 80 lt rgb "#000000"
|
||||||
|
|
||||||
|
# Line style for grid
|
||||||
|
set style line 81 lt 0 # dashed
|
||||||
|
set style line 81 lt rgb "#808080" # grey
|
||||||
|
|
||||||
|
set grid back linestyle 81
|
||||||
|
set border 3 back linestyle 80 # Remove border on top and right. These
|
||||||
|
# borders are useless and make it harder
|
||||||
|
# to see plotted lines near the border.
|
||||||
|
# Also, put it in grey; no need for so much emphasis on a border.
|
||||||
|
set xtics nomirror
|
||||||
|
set ytics nomirror
|
||||||
|
|
||||||
|
set yrange [0:]
|
||||||
|
set format y "%0.1f";
|
||||||
|
set style data histogram
|
||||||
|
set style histogram cluster gap 1
|
||||||
|
|
||||||
|
#set style line 1 lt rgb "#A0A0A0" lw 1 pt 1 ps 1
|
||||||
|
#set key autotitle columnhead
|
||||||
|
|
||||||
|
color1 = "#ff0c18";color2 = "#000000"; color3 = "#0c24ff";
|
||||||
|
set xtic rotate by 300 scale 1
|
||||||
|
|
||||||
|
plot "gbps.txt" using 2:xtic(1) title "simdjson" linecolor rgb color1, \
|
||||||
|
"" using 3 title "RapidJSON" linecolor rgb color2, \
|
||||||
|
"" using 4 title "sajson" linecolor rgb color3
|
Binary file not shown.
|
@ -0,0 +1,18 @@
|
||||||
|
import os
|
||||||
|
import csv
|
||||||
|
import pandas as pd
|
||||||
|
|
||||||
|
def getdata(filename):
|
||||||
|
df = pd.read_csv(filename, delim_whitespace=True)
|
||||||
|
return (df["gb_per_s"].tolist())
|
||||||
|
|
||||||
|
ourdir=os.path.dirname(os.path.realpath(__file__))
|
||||||
|
answer = []
|
||||||
|
for file in os.listdir(ourdir):
|
||||||
|
if file.endswith(".table"):
|
||||||
|
fullpath = os.path.join(ourdir, file)
|
||||||
|
answer.append([file[:-6]]+getdata(fullpath))
|
||||||
|
print("#simdjson RapidJSON sajson")
|
||||||
|
answer.sort()
|
||||||
|
for l in answer:
|
||||||
|
print("\t".join(map(str,l)))
|
Loading…
Reference in New Issue