Skip to content

Commit 33e94c0

Browse files
chore(performance): update benchmarks (#286)
Co-authored-by: yamafaktory <[email protected]>
1 parent dcc1ede commit 33e94c0

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

PERFORMANCE.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
22
|:---|---:|---:|---:|---:|
3-
| `echo '[1, [2], [[3]]]' \| jq 'flatten'` | 20.4 ± 0.4 | 19.6 | 27.5 | 7.41 ± 0.48 |
4-
| `echo '[1, [2], [[3]]]' \| jql '..'` | 2.7 ± 0.2 | 2.2 | 4.1 | 1.00 |
3+
| `echo '[1, [2], [[3]]]' \| jq 'flatten'` | 20.0 ± 0.3 | 19.3 | 22.0 | 7.29 ± 0.47 |
4+
| `echo '[1, [2], [[3]]]' \| jql '..'` | 2.7 ± 0.2 | 2.4 | 4.5 | 1.00 |
55

66
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
77
|:---|---:|---:|---:|---:|
8-
| `echo '[1, 2, 3]' \| jq '.[0]'` | 20.3 ± 0.5 | 19.5 | 28.0 | 7.76 ± 0.51 |
9-
| `echo '[1, 2, 3]' \| jql '[0]'` | 2.6 ± 0.2 | 2.1 | 3.7 | 1.00 |
8+
| `echo '[1, 2, 3]' \| jq '.[0]'` | 19.9 ± 0.3 | 19.2 | 22.0 | 7.64 ± 0.48 |
9+
| `echo '[1, 2, 3]' \| jql '[0]'` | 2.6 ± 0.2 | 2.3 | 3.5 | 1.00 |
1010

1111
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
1212
|:---|---:|---:|---:|---:|
13-
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 20.1 ± 0.5 | 19.2 | 27.6 | 7.66 ± 0.55 |
14-
| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 2.6 ± 0.2 | 2.2 | 4.1 | 1.00 |
13+
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 19.8 ± 0.6 | 19.1 | 29.9 | 7.50 ± 0.51 |
14+
| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 2.6 ± 0.2 | 2.3 | 4.5 | 1.00 |
1515

1616
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
1717
|:---|---:|---:|---:|---:|
18-
| `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 |
19-
| `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 |
18+
| `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 |
19+
| `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 |
2020

0 commit comments

Comments
 (0)