Sha256: 0926b15134d92b95812d49863cad1ac9776066e60ef4bbe48a93b71fbc3e9cb6
Contents?: true
Size: 370 Bytes
Versions: 4
Compression:
Stored size: 370 Bytes
Contents
# frozen_string_literal: true %w[lib benchmarks].each { |name| $LOAD_PATH.unshift(name) } require 'benchmark/ips' require 'lite/uxid' Benchmark.ips do |x| x.report('Hash') do Lite::Uxid::Hash.encode(rand(1..1_000_000)) end x.report('NanoID') do Lite::Uxid::Nanoid.encode end x.report('ULID') do Lite::Uxid::Ulid.encode end x.compare! end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
lite-uxid-1.0.6 | benchmarks/compare.rb |
lite-uxid-1.0.5 | benchmarks/compare.rb |
lite-uxid-1.0.4 | benchmarks/compare.rb |
lite-uxid-1.0.3 | benchmarks/compare.rb |