examples/simple.rb in hotch-0.6.0 vs examples/simple.rb in hotch-0.7.0

- old
+ new

@@ -1,9 +1,11 @@ -require 'hotch' +# frozen_string_literal: true -COUNT = ENV.fetch('COUNT', 10_000) +require "hotch" +COUNT = ENV.fetch("COUNT", 1_000_000) + def foo "x" * 23 end def bar @@ -14,10 +16,10 @@ COUNT.times do foo end end -Hotch() do +Hotch(mode: :cpu) do COUNT.times do bar end end