snowflake/snowflake_test.go
2016-06-01 16:12:53 -05:00

17 lines
179 B
Go

package flake
import (
"testing"
)
func BenchmarkGenerate(b *testing.B) {
node, _ := NewNode(1)
b.ReportAllocs()
for n := 0; n < b.N; n++ {
_, _ = node.Generate()
}
}