gitee.com/quant1x/num@v0.3.2/window_test.go (about)

     1  package num
     2  
     3  import (
     4  	"testing"
     5  )
     6  
     7  func BenchmarkN_At(b *testing.B) {
     8  	testalignOnce.Do(initTestData)
     9  	param := Window[float64]{
    10  		V: testDataFloat64,
    11  		C: 1.23,
    12  	}
    13  	for i := 0; i < b.N; i++ {
    14  		_ = param.At(i)
    15  	}
    16  }