Skip to content

Commit

Permalink
chore(performance): update benchmarks (#253)
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 committed Jan 19, 2024
1 parent 3ceb661 commit 09fd0c9
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'` | 19.9 ± 0.3 | 19.3 | 21.9 | 7.16 ± 0.41 |
| `echo '[1, [2], [[3]]]' \| jql '..'` | 2.8 ± 0.2 | 2.4 | 4.8 | 1.00 |
| `echo '[1, [2], [[3]]]' \| jq 'flatten'` | 20.0 ± 0.3 | 19.4 | 25.7 | 7.26 ± 0.39 |
| `echo '[1, [2], [[3]]]' \| jql '..'` | 2.7 ± 0.1 | 2.4 | 3.4 | 1.00 |

| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `echo '[1, 2, 3]' \| jq '.[0]'` | 20.1 ± 0.3 | 19.4 | 21.8 | 7.18 ± 0.39 |
| `echo '[1, 2, 3]' \| jql '[0]'` | 2.8 ± 0.1 | 2.5 | 3.4 | 1.00 |
| `echo '[1, 2, 3]' \| jq '.[0]'` | 19.9 ± 0.4 | 19.3 | 25.3 | 7.17 ± 0.39 |
| `echo '[1, 2, 3]' \| jql '[0]'` | 2.8 ± 0.1 | 2.4 | 3.4 | 1.00 |

| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 19.7 ± 0.3 | 19.1 | 23.4 | 6.99 ± 0.44 |
| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 2.8 ± 0.2 | 2.4 | 3.7 | 1.00 |
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 19.8 ± 0.9 | 19.1 | 36.9 | 7.25 ± 0.52 |
| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 2.7 ± 0.2 | 2.4 | 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` | 122.0 ± 5.2 | 116.1 | 184.9 | 6.50 ± 0.33 |
| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '\|>{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 18.8 ± 0.5 | 17.1 | 22.1 | 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` | 121.4 ± 5.4 | 115.5 | 165.5 | 6.64 ± 0.34 |
| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '\|>{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 18.3 ± 0.5 | 16.8 | 20.6 | 1.00 |

0 comments on commit 09fd0c9

Please sign in to comment.