Sha256: 77a5d06bfb260519731a63551f5de8835366ea369775834276d59d6227fc1daa
Contents?: true
Size: 483 Bytes
Versions: 25
Compression:
Stored size: 483 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true # 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::AcquireLock.execute(nil, SecureRandom.hex, SecureRandom.hex) end x.compare! end
Version data entries
25 entries across 25 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-unique-jobs-5.0.8 | bin/bench |
sidekiq-unique-jobs-5.0.7 | bin/bench |
sidekiq-unique-jobs-5.0.6 | bin/bench |
sidekiq-unique-jobs-5.0.5 | bin/bench |
sidekiq-unique-jobs-5.0.4 | bin/bench |