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-6.0.8 bin/bench
sidekiq-unique-jobs-6.0.7 bin/bench
sidekiq-unique-jobs-5.0.11 bin/bench
sidekiq-unique-jobs-6.0.6 bin/bench
sidekiq-unique-jobs-6.0.5 bin/bench
sidekiq-unique-jobs-6.0.4 bin/bench
sidekiq-unique-jobs-6.0.3 bin/bench
sidekiq-unique-jobs-6.0.2 bin/bench
sidekiq-unique-jobs-6.0.1 bin/bench
sidekiq-unique-jobs-6.0.0 bin/bench
sidekiq-unique-jobs-6.0.0.rc8 bin/bench
sidekiq-unique-jobs-6.0.0.rc7 bin/bench
sidekiq-unique-jobs-6.0.0.rc6 bin/bench
sidekiq-unique-jobs-6.0.0.rc5 bin/bench
sidekiq-unique-jobs-6.0.0.rc4 bin/bench
sidekiq-unique-jobs-6.0.0.rc3 bin/bench
sidekiq-unique-jobs-6.0.0.rc2 bin/bench
sidekiq-unique-jobs-6.0.0.rc1 bin/bench
sidekiq-unique-jobs-5.0.10 bin/bench
sidekiq-unique-jobs-5.0.9 bin/bench