Skip to content

Commit

Permalink
chore(performance): update benchmarks (#249)
Browse files Browse the repository at this point in the history
Co-authored-by: yamafaktory <yamafaktory@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and yamafaktory authored Dec 6, 2023
1 parent af2768b commit a12f2c3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions PERFORMANCE.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `echo '[1, [2], [[3]]]' \| jq 'flatten'` | 20.4 ± 0.5 | 19.7 | 29.9 | 7.02 ± 0.42 |
| `echo '[1, [2], [[3]]]' \| jql '..'` | 2.9 ± 0.2 | 2.5 | 4.3 | 1.00 |
| `echo '[1, [2], [[3]]]' \| jq 'flatten'` | 20.5 ± 0.4 | 19.6 | 29.1 | 6.73 ± 0.40 |
| `echo '[1, [2], [[3]]]' \| jql '..'` | 3.0 ± 0.2 | 2.5 | 3.5 | 1.00 |

| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `echo '[1, 2, 3]' \| jq '.[0]'` | 20.3 ± 0.4 | 19.4 | 22.3 | 7.06 ± 0.39 |
| `echo '[1, 2, 3]' \| jql '[0]'` | 2.9 ± 0.1 | 2.5 | 3.6 | 1.00 |
| `echo '[1, 2, 3]' \| jq '.[0]'` | 20.4 ± 0.7 | 19.6 | 31.0 | 6.36 ± 2.85 |
| `echo '[1, 2, 3]' \| jql '[0]'` | 3.2 ± 1.4 | 2.6 | 39.0 | 1.00 |

| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 20.2 ± 0.5 | 19.3 | 30.1 | 6.53 ± 0.41 |
| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 3.1 ± 0.2 | 2.6 | 3.6 | 1.00 |
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 20.3 ± 0.3 | 19.5 | 23.2 | 6.72 ± 0.39 |
| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 3.0 ± 0.2 | 2.6 | 3.5 | 1.00 |

| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jq -r '[.[] \| {name: .name, url: .url, language: .language, stargazers_count: .stargazers_count, watchers_count: .watchers_count}]' > /dev/null` | 122.1 ± 5.7 | 115.5 | 193.5 | 6.39 ± 0.34 |
| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '\|>{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 19.1 ± 0.5 | 17.5 | 22.5 | 1.00 |
| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jq -r '[.[] \| {name: .name, url: .url, language: .language, stargazers_count: .stargazers_count, watchers_count: .watchers_count}]' > /dev/null` | 123.4 ± 5.6 | 116.5 | 178.2 | 6.18 ± 0.34 |
| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '\|>{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 20.0 ± 0.6 | 18.1 | 25.7 | 1.00 |

0 comments on commit a12f2c3

Please sign in to comment.