benchmarks/compare.rb in lite-uxid-1.0.6 vs benchmarks/compare.rb in lite-uxid-1.0.7
- old
+ new
@@ -4,11 +4,11 @@
require 'benchmark/ips'
require 'lite/uxid'
Benchmark.ips do |x|
- x.report('Hash') do
- Lite::Uxid::Hash.encode(rand(1..1_000_000))
+ x.report('Hashid') do
+ Lite::Uxid::Hashid.encode(rand(1..1_000_000))
end
x.report('NanoID') do
Lite::Uxid::Nanoid.encode
end