2 ms·
I get 14,823s for python3 and 4,667s for jo on my system. I also wrote my own tool, xidel [1]: time for i in $(seq 1 $count); do xidel -se '{"name": "JP",
by benibela 5y ago
I get 14,823s for python3 and 4,667s for jo on my system.
I also wrote my own tool, xidel [1]:
time for i in $(seq 1 $count); do xidel -se '{"name": "JP", "object": {"fruit": "Orange", "point": {"x": 10, "y": 20}, "number": 17}, "sunday": false()}' > /dev/null; done
which gives me 1,575s
But if you actually want to repeat something a thousand times, you would use a loop in the query for 0,017s:
time xidel -se 'for $i in 1 to 1000 return {"name": "JP", "object": {"fruit": "Orange", "point": {"x": 10, "y": 20}, "number": 17}, "sunday": false()}' > /dev/null
(a python3 loop gives me 0,029s)
[1] https://videlibri.de/xidel.html https://videlibri.de/xidel.html