We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b71cf5c commit 4cb8656Copy full SHA for 4cb8656
shard.yml
@@ -18,4 +18,4 @@ dependencies:
18
development_dependencies:
19
ameba:
20
github: crystal-ameba/ameba
21
- version: ~> 1.6
+ version: ~> 1.6.1
spec/csuuid_spec.cr
@@ -139,4 +139,16 @@ describe CSUUID do
139
uuid1.should_not eq uuid2
140
uuid2.should be > uuid1
141
end
142
+
143
+ it "can benchmark against the system UUIDs" do
144
+ CSUUID.prng = Random::PCG32.new
145
146
+ puts
147
148
+ Benchmark.ips do |benchmark|
149
+ benchmark.report("CSUUID.unique") { CSUUID.unique }
150
+ benchmark.report("CSUUID.new") { CSUUID.new }
151
+ benchmark.report("UUID.v7") { UUID.v7 }
152
+ end
153
154
0 commit comments