Commit b6316cd5 authored by ChenHongyu's avatar ChenHongyu

service test

parent b6dc6bcc
......@@ -20,7 +20,7 @@ func TestMain(m *testing.M) {
func Benchmark_GetID(b *testing.B) {
srv := New(config.Conf)
b.ResetTimer()
b.N = 30
b.N = 100
for i := 0; i < b.N; i++ {
id, err := srv.GetLogId(context.Background(), int64(i))
if err != nil {
......
......@@ -20,7 +20,7 @@ func TestMain(m *testing.M) {
func Benchmark_GetID(b *testing.B) {
srv := New(config.Conf)
b.ResetTimer()
b.N = 30
b.N = 100
for i := 0; i < b.N; i++ {
id, err := srv.GetLogId(context.Background(), int64(i))
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment