Skip to content

Commit

Permalink
chore(performance): update benchmarks (#289)
Browse files Browse the repository at this point in the history
Co-authored-by: yamafaktory <[email protected]>
  • Loading branch information
github-actions[bot] and yamafaktory authored Dec 6, 2024
1 parent 670b630 commit 8409f48
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.0 ± 0.3 | 19.3 | 22.0 | 7.29 ± 0.47 |
| `echo '[1, [2], [[3]]]' \| jql '..'` | 2.7 ± 0.2 | 2.4 | 4.5 | 1.00 |
| `echo '[1, [2], [[3]]]' \| jq 'flatten'` | 20.7 ± 0.5 | 19.7 | 27.5 | 7.24 ± 0.69 |
| `echo '[1, [2], [[3]]]' \| jql '..'` | 2.9 ± 0.3 | 2.4 | 4.8 | 1.00 |

| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `echo '[1, 2, 3]' \| jq '.[0]'` | 19.9 ± 0.3 | 19.2 | 22.0 | 7.64 ± 0.48 |
| `echo '[1, 2, 3]' \| jql '[0]'` | 2.6 ± 0.2 | 2.3 | 3.5 | 1.00 |
| `echo '[1, 2, 3]' \| jq '.[0]'` | 20.6 ± 0.5 | 19.5 | 24.9 | 7.17 ± 0.60 |
| `echo '[1, 2, 3]' \| jql '[0]'` | 2.9 ± 0.2 | 2.3 | 4.4 | 1.00 |

| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 19.8 ± 0.6 | 19.1 | 29.9 | 7.50 ± 0.51 |
| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 2.6 ± 0.2 | 2.3 | 4.5 | 1.00 |
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 20.5 ± 0.5 | 19.3 | 26.7 | 7.21 ± 0.60 |
| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 2.8 ± 0.2 | 2.3 | 4.4 | 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` | 123.6 ± 5.5 | 116.8 | 199.4 | 6.60 ± 0.36 |
| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '\|>{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 18.7 ± 0.6 | 17.0 | 22.4 | 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.5 ± 5.5 | 116.1 | 163.4 | 6.59 ± 0.38 |
| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '\|>{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 18.7 ± 0.7 | 16.6 | 24.1 | 1.00 |

0 comments on commit 8409f48

Please sign in to comment.