mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
29 lines
646 B
Python
29 lines
646 B
Python
import os
|
|
import csv
|
|
|
|
try: import pandas as pd
|
|
except ImportError:
|
|
import pip
|
|
pip.main(['install', '--user', 'pandas'])
|
|
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.startswith("all"):
|
|
continue
|
|
if file.endswith(".table"):
|
|
fullpath = os.path.join(ourdir, file)
|
|
answer.append([file[:-11]]+getdata(fullpath))
|
|
print("#simdjson RapidJSON sajson")
|
|
answer.sort()
|
|
for l in answer:
|
|
print("\t".join(map(str,l)))
|
|
|
|
|
|
|