4 ms·
Looks neat, but seems slow? $ wc -l conn.log 8505 conn.log $ cat conn.log |time ~/src/jtc-standard.json/jtc -a -w '<uid>l' -qq |shasum 0.44 re
by justinsaccount 7y ago
Looks neat, but seems slow?
$ wc -l conn.log
8505 conn.log
$ cat conn.log |time ~/src/jtc-standard.json/jtc -a -w '<uid>l' -qq |shasum
0.44 real 0.43 user 0.00 sys
167f6d638a4ccf9e0be1ff4ed74caa01a461bd9a -
$ cat conn.log | time jq -r .uid|shasum
0.10 real 0.10 user 0.00 sys
167f6d638a4ccf9e0be1ff4ed74caa01a461bd9a -
$ cat conn.log | time json-cut uid |shasum
0.04 real 0.01 user 0.01 sys
167f6d638a4ccf9e0be1ff4ed74caa01a461bd9a -
json-cut is a crappy tool I wrote that use github.com/buger/jsonparser