mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-07 02:07:58 +00:00
7 lines
335 B
Bash
7 lines
335 B
Bash
#/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)'
|