Sha256: 1d41a8f0e1ce21ddd5f93457806fe76276895604d38cf6c51216ed010ed5e6f4
Contents?: true
Size: 468 Bytes
Versions: 2
Compression:
Stored size: 468 Bytes
Contents
#!/usr/bin/env ruby # Trap interrupts to quit cleanly. See # https://twitter.com/mitchellh/status/283014103189053442 Signal.trap('INT') { abort } require 'bundler/setup' require 'benchmark/ips' require 'sidekiq-unique-jobs' ITERATIONS ||= 10_000 Benchmark.ips do |x| x.config(time: 5, warmup: 2) x.report('new_shit') do |_times| SidekiqUniqueJobs::Scripts.call(:acquire_lock, nil, keys: [SecureRandom.hex], argv: [SecureRandom.hex]) end x.compare! end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-unique-jobs-4.0.18 | bin/bench |
sidekiq-unique-jobs-4.0.17 | bin/bench |