1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 00:22:41 +08:00
This commit is contained in:
2022-11-18 16:53:59 +08:00
parent 6e24cf5bdc
commit b76be4ce6b
17 changed files with 103 additions and 180 deletions

View File

@ -47,7 +47,7 @@ func BenchmarkGetId(b *testing.B) {
func BenchmarkMutiGetId(b *testing.B) {
s := CreateSnowflake(11)
set := sets.NewHashSet[int64]().WithSync()
set := sets.NewHashSet[int64]().Sync()
b.RunParallel(func(p *testing.PB) {
for i := 0; p.Next(); i++ {
id := s.GetId()