Skip to content

Commit f58c2f1

Browse files
committed
Use tee
1 parent 6de5dc3 commit f58c2f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/benchmark.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- run: npm ci
3838

3939
- name: Run benchmark
40-
run: go test -run='^$' -bench=. -benchmem -count=10 ./... > new.txt
40+
run: go test -run='^$' -bench=. -benchmem -count=10 ./... | tee new.txt
4141

4242
- name: Switch to parent commit
4343
run: git switch --detach HEAD^1
@@ -47,7 +47,7 @@ jobs:
4747
- run: git submodule update --init --recursive
4848

4949
- name: Run benchmark
50-
run: go test -run='^$' -bench=. -benchmem -count=10 ./... > old.txt
50+
run: go test -run='^$' -bench=. -benchmem -count=10 ./... | tee old.txt
5151

5252
- run: go install golang.org/x/perf/cmd/benchstat@latest
5353

0 commit comments

Comments
 (0)