Skip to content

Commit b80624f

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

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'` | 26.8 ± 0.6 | 25.5 | 29.9 | 14.97 ± 1.87 |
4-
| `echo '[1, [2], [[3]]]' \| jql '..'` | 1.8 ± 0.2 | 1.6 | 4.6 | 1.00 |
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 |
55

66
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
77
|:---|---:|---:|---:|---:|
8-
| `echo '[1, 2, 3]' \| jq '.[0]'` | 26.3 ± 0.5 | 25.1 | 30.8 | 15.25 ± 1.84 |
9-
| `echo '[1, 2, 3]' \| jql '[0]'` | 1.7 ± 0.2 | 1.5 | 2.7 | 1.00 |
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 |
1010

1111
| Command | Mean [ms] | Min [ms] | Max [ms] | Relative |
1212
|:---|---:|---:|---:|---:|
13-
| `echo '{ "foo": "bar" }' \| jq '.foo'` | 26.5 ± 0.5 | 25.4 | 30.8 | 14.47 ± 1.86 |
14-
| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 1.8 ± 0.2 | 1.6 | 5.9 | 1.00 |
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 |
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` | 152.6 ± 1.3 | 150.8 | 179.7 | 7.31 ± 0.80 |
19-
| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '\|>{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 20.9 ± 2.3 | 17.6 | 44.7 | 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` | 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 |
2020

0 commit comments

Comments
 (0)