Debian Codegraph @

resolution_test.go

raw
1 package uuid
2
3 import "testing"
4
5 func BenchmarkNewV1Resolution_1024(b *testing.B) {
6 gen := NewGenerator(GeneratorConfig{})
7 b.ResetTimer()
8 for i := 0; i < b.N; i++ {
9 gen.NewV1() // Sets up initial store on first run
10 }
11 b.StopTimer()
12 b.ReportAllocs()
13 }
14
15 func BenchmarkNewV1Resolution_2048(b *testing.B) {
16 gen := NewGenerator(GeneratorConfig{Resolution: 2048})
17 b.ResetTimer()
18 for i := 0; i < b.N; i++ {
19 gen.NewV1() // Sets up initial store on first run
20 }
21 b.StopTimer()
22 b.ReportAllocs()
23 }
24
25 func BenchmarkNewV1Resolution_3072(b *testing.B) {
26 gen := NewGenerator(GeneratorConfig{Resolution: 3072})
27 b.ResetTimer()
28 for i := 0; i < b.N; i++ {
29 gen.NewV1() // Sets up initial store on first run
30 }
31 b.StopTimer()
32 b.ReportAllocs()
33 }
34
35 func BenchmarkNewV1Resolution_4096(b *testing.B) {
36 gen := NewGenerator(GeneratorConfig{Resolution: 4096})
37 b.ResetTimer()
38 for i := 0; i < b.N; i++ {
39 gen.NewV1() // Sets up initial store on first run
40 }
41 b.StopTimer()
42 b.ReportAllocs()
43 }
44
45 func BenchmarkNewV1Resolution_5120(b *testing.B) {
46 gen := NewGenerator(GeneratorConfig{Resolution: 5120})
47 b.ResetTimer()
48 for i := 0; i < b.N; i++ {
49 gen.NewV1() // Sets up initial store on first run
50 }
51 b.StopTimer()
52 b.ReportAllocs()
53 }
54
55 func BenchmarkNewV1Resolution_6144(b *testing.B) {
56 gen := NewGenerator(GeneratorConfig{Resolution: 6144})
57 b.ResetTimer()
58 for i := 0; i < b.N; i++ {
59 gen.NewV1() // Sets up initial store on first run
60 }
61 b.StopTimer()
62 b.ReportAllocs()
63 }
64
65 func BenchmarkNewV1Resolution_7168(b *testing.B) {
66 gen := NewGenerator(GeneratorConfig{Resolution: 7168})
67 b.ResetTimer()
68 for i := 0; i < b.N; i++ {
69 gen.NewV1() // Sets up initial store on first run
70 }
71 b.StopTimer()
72 b.ReportAllocs()
73 }
74
75 func BenchmarkNewV1Resolution_8192(b *testing.B) {
76 gen := NewGenerator(GeneratorConfig{Resolution: 8192})
77 b.ResetTimer()
78 for i := 0; i < b.N; i++ {
79 gen.NewV1() // Sets up initial store on first run
80 }
81 b.StopTimer()
82 b.ReportAllocs()
83 }
84
85 func BenchmarkNewV1Resolution_9216(b *testing.B) {
86 gen := NewGenerator(GeneratorConfig{Resolution: 9216})
87 b.ResetTimer()
88 for i := 0; i < b.N; i++ {
89 gen.NewV1() // Sets up initial store on first run
90 }
91 b.StopTimer()
92 b.ReportAllocs()
93 }
94
95 func BenchmarkNewV1Resolution_18432(b *testing.B) {
96 gen := NewGenerator(GeneratorConfig{Resolution: 18432})
97 b.ResetTimer()
98 for i := 0; i < b.N; i++ {
99 gen.NewV1() // Sets up initial store on first run
100 }
101 b.StopTimer()
102 b.ReportAllocs()
103 }