summaryrefslogtreecommitdiff
path: root/benchmarks/generator2_benchmark.rb
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2010-09-22 22:21:02 +0200
committerFlorian Frank <flori@ping.de>2010-09-23 01:16:01 +0200
commite3fe104e7d5ec184aac36128aed2d217cb655dfc (patch)
tree3a63dc0152effdb990defcd5c935e38209649a8f /benchmarks/generator2_benchmark.rb
parent2c0f8d2c9b15a33b8d10ffcb1959aef54d320b57 (diff)
downloadjson-e3fe104e7d5ec184aac36128aed2d217cb655dfc.tar.gz
started to build jruby extension with Rakefile
Diffstat (limited to 'benchmarks/generator2_benchmark.rb')
-rwxr-xr-xbenchmarks/generator2_benchmark.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/generator2_benchmark.rb b/benchmarks/generator2_benchmark.rb
index 3a32d05..9885143 100755
--- a/benchmarks/generator2_benchmark.rb
+++ b/benchmarks/generator2_benchmark.rb
@@ -138,7 +138,7 @@ class Generator2BenchmarkRails < Bullshit::RepeatCase
histogram yes
def benchmark_generator
- @result = @big.to_json
+ @result = ActiveSupport::JSON.encode @big
end
alias reset_benchmark_generator generic_reset_method