Skip to content

Commit dbf8997

Browse files
chore(performance): update benchmarks (#223)
Co-authored-by: yamafaktory <yamafaktory@users.noreply.github.com>
1 parent c693471 commit dbf8997

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'` | 31.5 ± 1.3 | 29.5 | 38.4 | 14.24 ± 6.34 |
4-
| `echo '[1, [2], [[3]]]' \| jql '..'` | 2.2 ± 1.0 | 1.8 | 27.0 | 1.00 |
3+
| `echo '[1, [2], [[3]]]' \| jq 'flatten'` | 26.6 ± 0.5 | 25.5 | 28.5 | 16.01 ± 1.58 |
4+
| `echo '[1, [2], [[3]]]' \| jql '..'` | 1.7 ± 0.2 | 1.5 | 3.3 | 1.00 |
55

66
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
77
|:---|---:|---:|---:|---:|
8-
| `echo '[1, 2, 3]' \| jq '.[0]'` | 31.5 ± 1.5 | 29.2 | 49.4 | 15.17 ± 3.53 |
9-
| `echo '[1, 2, 3]' \| jql '[0]'` | 2.1 ± 0.5 | 1.7 | 9.8 | 1.00 |
8+
| `echo '[1, 2, 3]' \| jq '.[0]'` | 26.6 ± 0.6 | 25.4 | 28.8 | 15.91 ± 1.95 |
9+
| `echo '[1, 2, 3]' \| jql '[0]'` | 1.7 ± 0.2 | 1.5 | 5.4 | 1.00 |
1010

1111
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
1212
|:---|---:|---:|---:|---:|
13-
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 31.5 ± 1.4 | 29.2 | 44.1 | 15.39 ± 2.84 |
14-
| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 2.0 ± 0.4 | 1.7 | 7.3 | 1.00 |
13+
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 26.5 ± 0.6 | 25.4 | 30.0 | 15.77 ± 2.30 |
14+
| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 1.7 ± 0.2 | 1.5 | 5.9 | 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` | 181.3 ± 3.2 | 175.7 | 212.5 | 7.86 ± 0.78 |
19-
| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '\|>{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 23.1 ± 2.2 | 18.8 | 37.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` | 156.9 ± 0.9 | 155.7 | 166.5 | 7.82 ± 0.86 |
19+
| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '\|>{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 20.1 ± 2.2 | 16.5 | 40.4 | 1.00 |
2020

0 commit comments

Comments
 (0)