Skip to content

Instantly share code, notes, and snippets.

@10XL
10XL / benchmark-ips.rb
Created November 23, 2016 20:22
Ruby(2.3.1) Benchmark-IPS: Windows 10 and WSL
# https://github.com/evanphx/benchmark-ips
require 'benchmark/ips'
Benchmark.ips do |x|
# Configure the number of seconds used during
# the warmup phase (default 2) and calculation phase (default 5)
x.config(:time => 5, :warmup => 2)
# These parameters can also be configured this way
x.time = 5