Remove unnecessary benchmark.
This commit is contained in:
parent
de00b1d77c
commit
30ee13eec9
1 changed files with 0 additions and 39 deletions
39
mag_test.go
39
mag_test.go
|
|
@ -1,39 +0,0 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"crypto/rand"
|
||||
|
||||
"github.com/bemasher/rtlamr/decode"
|
||||
|
||||
"testing"
|
||||
)
|
||||
|
||||
func BenchmarkSqrtMag(b *testing.B) {
|
||||
lut := decode.NewSqrtMagLUT()
|
||||
input := make([]byte, 8192)
|
||||
output := make([]float64, 4096)
|
||||
|
||||
rand.Read(input)
|
||||
|
||||
b.SetBytes(4096)
|
||||
b.ReportAllocs()
|
||||
b.ResetTimer()
|
||||
for n := 0; n < b.N; n++ {
|
||||
lut.Execute(input, output)
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkAlphaMaxBetaMinMag(b *testing.B) {
|
||||
lut := decode.NewAlphaMaxBetaMinLUT()
|
||||
input := make([]byte, 8192)
|
||||
output := make([]float64, 4096)
|
||||
|
||||
rand.Read(input)
|
||||
|
||||
b.SetBytes(4096)
|
||||
b.ReportAllocs()
|
||||
b.ResetTimer()
|
||||
for n := 0; n < b.N; n++ {
|
||||
lut.Execute(input, output)
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue