Improved benchmark
This commit is contained in:
parent
a21ea3a6ef
commit
38c33f97cc
@ -23,10 +23,7 @@ func BenchmarkGet(b *testing.B) {
|
|||||||
|
|
||||||
b.RunParallel(func(pb *testing.PB) {
|
b.RunParallel(func(pb *testing.PB) {
|
||||||
for pb.Next() {
|
for pb.Next() {
|
||||||
user, err := users.Get("1")
|
users.Get("1")
|
||||||
assert.Nil(b, err)
|
|
||||||
assert.NotNil(b, user)
|
|
||||||
assert.Equal(b, user.Name, "User 1")
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user