-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(performance): update benchmarks (#286)
Co-authored-by: yamafaktory <[email protected]>
- Loading branch information
1 parent
dcc1ede
commit 33e94c0
Showing
1 changed file
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.4 | 19.6 | 27.5 | 7.41 ± 0.48 | | ||
| `echo '[1, [2], [[3]]]' \| jql '..'` | 2.7 ± 0.2 | 2.2 | 4.1 | 1.00 | | ||
| `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 | | ||
|
||
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative | | ||
|:---|---:|---:|---:|---:| | ||
| `echo '[1, 2, 3]' \| jq '.[0]'` | 20.3 ± 0.5 | 19.5 | 28.0 | 7.76 ± 0.51 | | ||
| `echo '[1, 2, 3]' \| jql '[0]'` | 2.6 ± 0.2 | 2.1 | 3.7 | 1.00 | | ||
| `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 | | ||
|
||
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative | | ||
|:---|---:|---:|---:|---:| | ||
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 20.1 ± 0.5 | 19.2 | 27.6 | 7.66 ± 0.55 | | ||
| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 2.6 ± 0.2 | 2.2 | 4.1 | 1.00 | | ||
| `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 | | ||
|
||
| 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.4 ± 5.0 | 115.9 | 159.1 | 6.54 ± 0.33 | | ||
| `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.3 | 24.2 | 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.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 | | ||
|