mirror of
https://git.numenor-labs.us/dsfx.git
synced 2025-04-29 08:10:34 +00:00
add cpu and mem support to bench
This commit is contained in:
parent
b9c105a539
commit
8bfa72fb58
@ -2,6 +2,6 @@ goos: linux
|
||||
goarch: amd64
|
||||
pkg: koti.casa/numenor-labs/dsfx/pkg/handshake
|
||||
cpu: Intel(R) Core(TM) Ultra 9 185H
|
||||
BenchmarkHandshake-22 4095 292021 ns/op
|
||||
BenchmarkHandshake 4214 274337 ns/op 12976 B/op 131 allocs/op
|
||||
PASS
|
||||
ok koti.casa/numenor-labs/dsfx/pkg/handshake 1.203s
|
||||
ok koti.casa/numenor-labs/dsfx/pkg/handshake 1.163s
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
cmd := exec.Command("go", "test", "-bench=Handshake", "./pkg/handshake/...")
|
||||
cmd := exec.Command("go", "test", "-bench=Handshake", "-cpu=1", "-benchmem", "./pkg/handshake/...")
|
||||
|
||||
output, err := cmd.Output()
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user