Skip to content

Commit

Permalink
chore(performance): update benchmarks (#158)
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 Apr 14, 2022
1 parent 3334eda commit 71bb809
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'` | 37.9 ± 2.7 | 33.7 | 50.7 | 18.45 ± 5.51 |
| `echo '[1, [2], [[3]]]' \| jql '...'` | 2.1 ± 0.6 | 1.2 | 10.2 | 1.00 |
| `echo '[1, [2], [[3]]]' \| jq 'flatten'` | 40.8 ± 2.6 | 37.9 | 56.8 | 16.85 ± 6.37 |
| `echo '[1, [2], [[3]]]' \| jql '...'` | 2.4 ± 0.9 | 1.8 | 21.4 | 1.00 |

| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `echo '[1, 2, 3]' \| jq '.[0]'` | 39.1 ± 2.6 | 34.0 | 49.3 | 19.67 ± 4.89 |
| `echo '[1, 2, 3]' \| jql '.[0]'` | 2.0 ± 0.5 | 1.3 | 7.1 | 1.00 |
| `echo '[1, 2, 3]' \| jq '.[0]'` | 40.3 ± 2.3 | 37.8 | 59.6 | 16.62 ± 3.79 |
| `echo '[1, 2, 3]' \| jql '.[0]'` | 2.4 ± 0.5 | 1.8 | 10.9 | 1.00 |

| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
|:---|---:|---:|---:|---:|
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 40.7 ± 3.3 | 34.4 | 54.0 | 20.44 ± 5.36 |
| `echo '{ "foo": "bar" }' \| jql '."foo"'` | 2.0 ± 0.5 | 1.2 | 9.8 | 1.00 |
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 40.0 ± 2.1 | 37.5 | 59.9 | 18.35 ± 6.07 |
| `echo '{ "foo": "bar" }' \| jql '."foo"'` | 2.2 ± 0.7 | 1.6 | 14.6 | 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` | 173.7 ± 12.8 | 152.1 | 234.0 | 1.28 ± 0.13 |
| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '.\|{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 135.6 ± 9.4 | 116.2 | 179.7 | 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` | 201.4 ± 5.7 | 194.3 | 260.5 | 1.30 ± 0.06 |
| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '.\|{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 154.7 ± 5.3 | 146.8 | 206.4 | 1.00 |

0 comments on commit 71bb809

Please sign in to comment.