You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

23 lines
364 B

package service
import (
"context"
"fmt"
"testing"
"go-common/app/interface/main/player/conf"
)
// test func Player
func BenchmarkPolicy(b *testing.B) {
if err := conf.Init(); err != nil {
fmt.Println(err)
}
ser := New(conf.Conf)
c := context.Background()
b.RunParallel(func(pb *testing.PB) {
for pb.Next() {
ser.Policy(c, 1, 6698028)
}
})
}