Skip to content

Commit 83d09f1

Browse files
committed
display bytes
1 parent 8119a3b commit 83d09f1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/benchmarks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,16 @@ jobs:
6565
- name: Generate Markdown Summary from Benchmark JSON
6666
run: |
6767
echo "## 🚀 Benchmark Summary" > benchmark_summary.md
68-
echo '| Method | Mean | Error | StdDev |' >> benchmark_summary.md
69-
echo '|--------|-----:|------:|-------:|' >> benchmark_summary.md
68+
echo '| Method | Mean | Error | StdDev | Allocation |' >> benchmark_summary.md
69+
echo '|--------|-----:|------:|-------:|-------:|' >> benchmark_summary.md
7070
7171
for file in BenchmarkDotNet.Artifacts/results/*.json; do
7272
jq -r '
7373
def nano: (. * 1000 | tostring | split(".") | .[0] + "." + (.[1] | .[0:3] // "000"));
7474
7575
.Benchmarks[] |
7676
.Statistics as $s |
77-
"| \(.Method) | \($s.Mean | nano) ns | ±\($s.StandardError | nano) ns | \($s.StandardDeviation | nano) ns |"
77+
"| \(.Method) | \($s.Mean | nano) ns | ±\($s.StandardError | nano) ns | \($s.StandardDeviation | nano) ns | \(.Memory.BytesAllocatedPerOperation) B |"
7878
' "$file" >> benchmark_summary.md
7979
done
8080

0 commit comments

Comments
 (0)