Sha256: 546ab5ce7a09e04f28de408be4d0d1d7f20089a65b1b3b67ef59cad2b7b45ada

Contents?: true

Size: 364 Bytes

Versions: 15

Compression:

Stored size: 364 Bytes

Contents

require 'bundler/setup'
require_relative './active_record_setup'
require 'flipper'
require 'flipper/adapters/active_record'
require 'benchmark/ips'

flipper = Flipper.new(Flipper::Adapters::ActiveRecord.new)

2000.times do |i|
  flipper.enable_actor :foo, Flipper::Actor.new("User;#{i}")
end

Benchmark.ips do |x|
  x.report("get_all") { flipper.preload_all }
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
flipper-active_record-1.2.2 benchmark/active_record_adapter_ips.rb
flipper-active_record-1.2.1 benchmark/active_record_adapter_ips.rb
flipper-active_record-1.2.0 benchmark/active_record_adapter_ips.rb
flipper-active_record-1.1.2 benchmark/active_record_adapter_ips.rb
flipper-active_record-1.1.1 benchmark/active_record_adapter_ips.rb
flipper-active_record-1.1.0 benchmark/active_record_adapter_ips.rb
flipper-active_record-1.0.0 benchmark/active_record_adapter_ips.rb
flipper-active_record-1.0.0.pre benchmark/active_record_adapter_ips.rb
flipper-active_record-0.28.3 benchmark/active_record_adapter_ips.rb
flipper-active_record-0.28.2 benchmark/active_record_adapter_ips.rb
flipper-active_record-0.28.1 benchmark/active_record_adapter_ips.rb
flipper-active_record-0.28.0 benchmark/active_record_adapter_ips.rb
flipper-active_record-0.27.1 benchmark/active_record_adapter_ips.rb
flipper-active_record-0.27.0 benchmark/active_record_adapter_ips.rb
flipper-active_record-0.26.2 benchmark/active_record_adapter_ips.rb