From 31d154a6865199c08d375aca238fe2d20d4d5bf3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 3 Dec 2023 23:51:35 +0100 Subject: [PATCH] chore(performance): update benchmarks (#246) Co-authored-by: yamafaktory --- PERFORMANCE.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/PERFORMANCE.md b/PERFORMANCE.md index 6573329..9ae8d41 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'` | 19.7 ± 0.4 | 19.1 | 26.4 | 6.99 ± 0.35 | -| `echo '[1, [2], [[3]]]' \| jql '..'` | 2.8 ± 0.1 | 2.3 | 3.2 | 1.00 | +| `echo '[1, [2], [[3]]]' \| jq 'flatten'` | 20.4 ± 0.5 | 19.7 | 29.9 | 7.02 ± 0.42 | +| `echo '[1, [2], [[3]]]' \| jql '..'` | 2.9 ± 0.2 | 2.5 | 4.3 | 1.00 | | Command | Mean [ms] | Min [ms] | Max [ms] | Relative | |:---|---:|---:|---:|---:| -| `echo '[1, 2, 3]' \| jq '.[0]'` | 19.8 ± 0.3 | 19.0 | 21.4 | 7.00 ± 0.33 | -| `echo '[1, 2, 3]' \| jql '[0]'` | 2.8 ± 0.1 | 2.4 | 3.2 | 1.00 | +| `echo '[1, 2, 3]' \| jq '.[0]'` | 20.3 ± 0.4 | 19.4 | 22.3 | 7.06 ± 0.39 | +| `echo '[1, 2, 3]' \| jql '[0]'` | 2.9 ± 0.1 | 2.5 | 3.6 | 1.00 | | Command | Mean [ms] | Min [ms] | Max [ms] | Relative | |:---|---:|---:|---:|---:| -| `echo '{ "foo": "bar" }' \| jq '.foo'` | 19.8 ± 0.5 | 19.2 | 29.4 | 7.00 ± 0.36 | -| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 2.8 ± 0.1 | 2.4 | 3.8 | 1.00 | +| `echo '{ "foo": "bar" }' \| jq '.foo'` | 20.2 ± 0.5 | 19.3 | 30.1 | 6.53 ± 0.41 | +| `echo '{ "foo": "bar" }' \| jql '"foo"'` | 3.1 ± 0.2 | 2.6 | 3.6 | 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 ± 5.4 | 114.9 | 163.9 | 6.57 ± 0.36 | -| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '\|>{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 18.5 ± 0.6 | 16.8 | 23.0 | 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.1 ± 5.7 | 115.5 | 193.5 | 6.39 ± 0.34 | +| `cat /home/runner/work/jql/jql/assets/github-repositories.json \| jql '\|>{"name", "url", "language", "stargazers_count", "watchers_count"}' > /dev/null` | 19.1 ± 0.5 | 17.5 | 22.5 | 1.00 |