dsfx/tool/bench/main.go

19 lines
270 B
Go
Raw Normal View History

2025-03-09 16:14:19 -04:00
package main
import (
"fmt"
"os"
"os/exec"
)
func main() {
2025-03-10 10:51:22 -04:00
cmd := exec.Command("go", "test", "-bench=Handshake", "-cpu=1", "-benchmem", "./pkg/handshake/...")
2025-03-09 16:14:19 -04:00
output, err := cmd.Output()
if err != nil {
panic(err)
}
fmt.Fprint(os.Stdout, string(output))
}