Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Faker VS FFaker benchmarks
require 'benchmark/ips'
require 'faker'
require 'ffaker'
Benchmark.ips do |x|'faker') { }'ffaker') { }!
Warming up --------------------------------------
faker 1.590k i/100ms
ffaker 42.837k i/100ms
Calculating -------------------------------------
faker 18.691k (± 5.6%) i/s - 93.810k in 5.036465s
ffaker 523.357k (± 6.2%) i/s - 2.613M in 5.017709s
ffaker: 523357.4 i/s
faker: 18691.2 i/s - 28.00x slower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment