mirror of
https://github.com/kubernetes-sigs/descheduler.git
synced 2026-01-27 22:14:52 +01:00
8 lines
335 B
Bash
Executable File
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)'
|