Skip to content

Commit 30ad7d4

Browse files
committed
Updated benchmarking setup
1 parent bf41fa5 commit 30ad7d4

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.github/workflows/golang.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ jobs:
4343
path: /tmp/gotest.log
4444
if-no-files-found: error
4545
- name: Benchmarks
46-
run: go test ./... -bench=. -run=^#
46+
run: go test ./... -bench=. -run=^# -benchmem

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,6 @@ go.work.sum
2323

2424
# env file
2525
.env
26+
27+
# Benchmarks
28+
benchmarks/

benchmarks/.gitkeep

Whitespace-only changes.

justfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ test-all:
1111
set -euo pipefail
1212
go test -json -v ./... 2>&1 | tee /tmp/gotest.log | gotestfmt
1313
bench day:
14-
go test ./day-{{day}} -bench=. -run=^#
14+
go test ./day-{{day}} -bench=. -run=^# -benchmem | tee ./benchmarks/day-{{day}}_`uname`_`hostname`_`date +%FT%T`.txt
1515
bench-all:
16-
go test ./... -bench=. -run=^#
16+
go test ./... -bench=. -run=^# -benchmem | tee ./benchmarks/all_`uname`_`hostname`_`date +%FT%T`.txt
1717
create day:
1818
go run scripts/template/main.go -day {{day}}

0 commit comments

Comments
 (0)