Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Jo – a shell command to create JSON (2016). Parent comment
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
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
[1] https://videlibri.de/xidel.html
There are no comments on this comment yet.
I also wrote my own tool, xidel [1]:
which gives me 1,575sBut if you actually want to repeat something a thousand times, you would use a loop in the query for 0,017s:
(a python3 loop gives me 0,029s)[1] https://videlibri.de/xidel.html