bf51655a7b
Signed-off-by: Jacek J. Łakis <jacek.lakis@intel.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
7 lines
335 B
Bash
Executable file
7 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)'
|