Skip to content

Commit

Permalink
Preset buffer size in benchmark setup, update local benchmark setting…
Browse files Browse the repository at this point in the history
…s. (#261)
  • Loading branch information
suyashkumar authored Feb 23, 2023
1 parent 5000f26 commit cb27a34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ release:
zip -r ${BINARY}-windows-amd64.exe.zip ${BINARY}-windows-amd64.exe;

bench-diff:
go test -bench . -count 5 > bench_current.txt
go test -bench . -benchtime=50x -count 5 > bench_current.txt
git checkout main
go test -bench . -count 5 > bench_main.txt
go test -bench . -benchtime=50x -count 5 > bench_main.txt
benchstat bench_main.txt bench_current.txt
git checkout -
1 change: 1 addition & 0 deletions read_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,7 @@ func buildReadNativeFramesInput(rows, cols, numFrames, samplesPerPixel int, b *t
},
}
dcmdata := bytes.Buffer{}
dcmdata.Grow(2 * numFrames * rows * cols * samplesPerPixel)
for fr := 0; fr < numFrames; fr++ {
for r := 0; r < rows; r++ {
for c := 0; c < cols; c++ {
Expand Down

0 comments on commit cb27a34

Please sign in to comment.