From b2adde7aabdeae8fe65f3066a7f30b6d54f4136a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 28 Oct 2024 13:06:24 +0100 Subject: [PATCH] chore(performance): update benchmarks (#284) Co-authored-by: yamafaktory --- PERFORMANCE.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/PERFORMANCE.md b/PERFORMANCE.md index b29ee4e..c9fe367 100644 --- a/PERFORMANCE.md +++ b/PERFORMANCE.md @@ -1,20 +1,20 @@ | Command | Mean [ms] | Min [ms] | Max [ms] | Relative | |:---|---:|---:|---:|---:| -| `echo '[1, [2], [[3]]]' \| jq 'flatten'` | 20.2 ± 0.7 | 19.5 | 32.9 | 9.59 ± 0.52 | -| `echo '[1, [2], [[3]]]' \| jql '..'` | 2.1 ± 0.1 | 2.0 | 3.1 | 1.00 | +| `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 | | Command | Mean [ms] | Min [ms] | Max [ms] | Relative | |:---|---:|---:|---:|---:| -| `echo '[1, 2, 3]' \| jq '.[0]'` | 20.1 ± 0.3 | 19.5 | 23.3 | 9.53 ± 0.49 | -| `echo '[1, 2, 3]' \| jql '[0]'` | 2.1 ± 0.1 | 1.9 | 4.0 | 1.00 | +| `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 | | Command | Mean [ms] | Min [ms] | Max [ms] | Relative | |:---|---:|---:|---:|---:| -| `echo '{ "foo": "bar" }' \| jq '.foo'` | 20.0 ± 0.5 | 19.2 | 31.1 | 9.60 ± 0.47 | -| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 2.1 ± 0.1 | 1.9 | 2.8 | 1.00 | +| `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 | | 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` | 121.5 ± 4.7 | 115.7 | 140.8 | 6.74 ± 0.30 | -| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '\|>{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 18.0 ± 0.4 | 17.1 | 24.4 | 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` | 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 |