mirror of
https://github.com/godruoyi/go-snowflake.git
synced 2025-12-23 05:25:15 +00:00
✈ ignore result for AtomicResolver test
This commit is contained in:
@@ -17,13 +17,13 @@ func TestAtomicResolver(t *testing.T) {
|
|||||||
func BenchmarkCombinationParallel(b *testing.B) {
|
func BenchmarkCombinationParallel(b *testing.B) {
|
||||||
b.RunParallel(func(pb *testing.PB) {
|
b.RunParallel(func(pb *testing.PB) {
|
||||||
for pb.Next() {
|
for pb.Next() {
|
||||||
snowflake.AtomicResolver(1)
|
_, _ = snowflake.AtomicResolver(1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func BenchmarkAtomicResolver(b *testing.B) {
|
func BenchmarkAtomicResolver(b *testing.B) {
|
||||||
for i := 0; i < b.N; i++ {
|
for i := 0; i < b.N; i++ {
|
||||||
snowflake.AtomicResolver(1)
|
_, _ = snowflake.AtomicResolver(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user