2013-07-23 18:08:05 +04:00
|
|
|
package uuid
|
2013-06-18 23:04:09 +04:00
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func BenchmarkNewV1(b *testing.B) {
|
|
|
|
for i := 0; i < b.N; i++ {
|
2013-07-23 18:08:05 +04:00
|
|
|
NewV1()
|
2013-06-18 23:04:09 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-06-19 01:48:27 +04:00
|
|
|
func BenchmarkNewV2(b *testing.B) {
|
|
|
|
for i := 0; i < b.N; i++ {
|
2013-07-23 18:08:05 +04:00
|
|
|
NewV2(DomainPerson)
|
2013-06-19 01:48:27 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-06-18 23:04:09 +04:00
|
|
|
func BenchmarkNewV3(b *testing.B) {
|
|
|
|
for i := 0; i < b.N; i++ {
|
2013-07-23 18:08:05 +04:00
|
|
|
NewV3(NamespaceDNS, "www.example.com")
|
2013-06-18 23:04:09 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func BenchmarkNewV4(b *testing.B) {
|
|
|
|
for i := 0; i < b.N; i++ {
|
2013-07-23 18:08:05 +04:00
|
|
|
NewV4()
|
2013-06-18 23:04:09 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func BenchmarkNewV5(b *testing.B) {
|
|
|
|
for i := 0; i < b.N; i++ {
|
2013-07-23 18:08:05 +04:00
|
|
|
NewV5(NamespaceDNS, "www.example.com")
|
2013-06-18 23:04:09 +04:00
|
|
|
}
|
|
|
|
}
|