Skip to content

flowerysong/ejq

Repository files navigation

This is a simple CLI wrapper around James Barford's easy-json library.

$ hyperfine 'jq -r .recipients[] tfile' 'jsonptr -query=/recipients tfile' 'ejq -r -f tfile -e .recipients' -N --warmup 10 --runs 5000 -u millisecond
Benchmark 1: jq -r .recipients[] tfile
  Time (mean ± σ):       2.8 ms ±   0.3 ms    [User: 1.7 ms, System: 1.0 ms]
  Range (min … max):     2.4 ms …   6.3 ms    5000 runs

Benchmark 2: jsonptr -query=/recipients tfile
  Time (mean ± σ):       1.5 ms ±   0.2 ms    [User: 1.1 ms, System: 0.3 ms]
  Range (min … max):     1.3 ms …   4.0 ms    5000 runs

Benchmark 3: ejq -r -f tfile -e .recipients
  Time (mean ± σ):       0.7 ms ±   0.1 ms    [User: 0.5 ms, System: 0.1 ms]
  Range (min … max):     0.6 ms …   3.8 ms    5000 runs

Summary
  ejq -r -f tfile -e .recipients ran
    2.08 ± 0.46 times faster than jsonptr -query=/recipients tfile
    3.89 ± 0.84 times faster than jq -r .recipients[] tfile

About

No description, website, or topics provided.

Resources

License

MIT, BSD-2-Clause licenses found

Licenses found

MIT
COPYING
BSD-2-Clause
COPYING.easy-json

Stars

Watchers

Forks

Packages

No packages published

Languages