README.md in benchmark_driver-0.10.9 vs README.md in benchmark_driver-0.10.10
- old
+ new
@@ -41,12 +41,12 @@
This interface generates code to profile with low overhead and executes it.
```rb
require 'benchmark_driver'
-Benchmark.drive do |x|
- x.prelude = <<~RUBY
+Benchmark.driver do |x|
+ x.prelude <<~RUBY
require 'active_support/all'
array = []
RUBY
x.report 'blank?', %{ array.blank? }
@@ -57,11 +57,11 @@
or simply:
```rb
require 'benchmark_driver'
-Benchmark.drive do |x|
- x.prelude = <<~RUBY
+Benchmark.driver do |x|
+ x.prelude <<~RUBY
require 'active_support/all'
array = []
RUBY
x.report %{ array.blank? }