benchmarks/benchmark_generator.rb in json_pure-1.1.0 vs benchmarks/benchmark_generator.rb in json_pure-1.1.1
- old
+ new
@@ -1,9 +1,13 @@
#!/usr/bin/env ruby
require 'bullshit'
$KCODE='utf8'
-require 'json'
+if ARGV.shift == 'pure'
+ require 'json/pure'
+else
+ require 'json/ext'
+end
class BC_Generator < Bullshit::TimeCase
include JSON
warmup true