Sha256: 2ae5e52b2ef9b02ee06b850dc1b0b9b4604fcdae7bc78c0dfc3aadacfb161e97

Contents?: true

Size: 348 Bytes

Versions: 30

Compression:

Stored size: 348 Bytes

Contents

require 'rubygems'
require 'benchmark'

N = 10_000

def run(name)
  require name
  Benchmark.bm do |rep|
    rep.report("generating #{ N } names (#{name} #{Faker::VERSION})") do
      N.times do
        Faker::Name.name
      end
    end
  end
  $stdout.flush
  exit(0)
end

fork { run("faker") }; Process.wait
fork { run("ffaker") }; Process.wait

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/ffaker-1.32.1/scripts/benchmark.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/ffaker-1.32.1/scripts/benchmark.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/ffaker-1.32.1/scripts/benchmark.rb
ffaker-1.32.1 scripts/benchmark.rb
ffaker-1.32.0 scripts/benchmark.rb
ffaker-1.31.0 scripts/benchmark.rb
ffaker-1.30.0 scripts/benchmark.rb
ffaker-1.25.0 scripts/benchmark.rb
ffaker-1.24.0 scripts/benchmark.rb
ffaker-1.23.0 scripts/benchmark.rb
ffaker-1.22.1 scripts/benchmark.rb
ffaker-1.22.0 scripts/benchmark.rb
ffaker-1.21.0 scripts/benchmark.rb
ffaker-1.20.0 scripts/benchmark.rb
ffaker-1.19.0 scripts/benchmark.rb
ffaker-1.18.0 scripts/benchmark.rb
ffaker-1.17.0 scripts/benchmark.rb
ffaker-1.16.2 scripts/benchmark.rb
ffaker-1.16.1 scripts/benchmark.rb
ffaker-1.16.0 scripts/benchmark.rb