Sha256: 852ce435241eb4763e6ae4b44a2bbb80b5400a7094b200b4b4d630811c064946

Contents?: true

Size: 348 Bytes

Versions: 10

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} #{FFaker::VERSION})") do
      N.times do
        FFaker::Name.name
      end
    end
  end
  $stdout.flush
  exit(0)
end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ffaker-2.11.0 scripts/benchmark.rb
ffaker-2.10.0 scripts/benchmark.rb
ffaker-2.9.0 scripts/benchmark.rb
ffaker-2.8.1 scripts/benchmark.rb
ffaker-2.8.0 scripts/benchmark.rb
ffaker-2.7.0 scripts/benchmark.rb
ffaker-2.6.0 scripts/benchmark.rb
ffaker-2.5.0 scripts/benchmark.rb
ffaker-2.4.0 scripts/benchmark.rb
ffaker-2.3.0 scripts/benchmark.rb