Files
external-snapshotter/vendor/github.com/mailru/easyjson/benchmark/ujson.sh
xing-yang e213d1890d Add generated file
This PR adds generated files under pkg/client and vendor folder.
2018-08-10 06:20:40 -07:00

8 lines
335 B
Bash
Executable File

#/bin/bash
echo -n "Python ujson module, DECODE: "
python -m timeit -s "import ujson; data = open('`dirname $0`/example.json', 'r').read()" 'ujson.loads(data)'
echo -n "Python ujson module, ENCODE: "
python -m timeit -s "import ujson; data = open('`dirname $0`/example.json', 'r').read(); obj = ujson.loads(data)" 'ujson.dumps(obj)'