You've already forked go-profiler-notes
mirror of
https://github.com/DataDog/go-profiler-notes.git
synced 2025-07-15 23:54:16 +02:00
Add cpu bench test
This commit is contained in:
9
examples/cpu/main_test.go
Normal file
9
examples/cpu/main_test.go
Normal file
@ -0,0 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Benchmark_compute(b *testing.B) {
|
||||
compute(b.N)
|
||||
}
|
Reference in New Issue
Block a user