Module: JSONGeneratorCommon
- Includes:
- GeneratorBenchmarkCommon
- Included in:
- GeneratorBenchmarkExt, GeneratorBenchmarkPure
- Defined in:
- lib/crazy_ivan/vendor/json-1.1.7/benchmarks/generator_benchmark.rb
Constant Summary
Constants included from JSON
JSON::Infinity, JSON::JSON_LOADED, JSON::MAP, JSON::MinusInfinity, JSON::NaN, JSON::UnparserError, JSON::VERSION, JSON::VERSION_ARRAY, JSON::VERSION_BUILD, JSON::VERSION_MAJOR, JSON::VERSION_MINOR
Instance Method Summary collapse
- #benchmark_generator_fast ⇒ Object
- #benchmark_generator_pretty ⇒ Object
- #benchmark_generator_safe ⇒ Object
Methods included from GeneratorBenchmarkCommon
Methods included from JSON
[], deep_const_get, dump, fast_generate, generate, load, parse, parse!, pretty_generate, recurse_proc, swap!, utf8_to_json
Instance Method Details
#benchmark_generator_fast ⇒ Object
38 39 40 |
# File 'lib/crazy_ivan/vendor/json-1.1.7/benchmarks/generator_benchmark.rb', line 38 def benchmark_generator_fast @result = JSON.fast_generate(@big) end |
#benchmark_generator_pretty ⇒ Object
50 51 52 |
# File 'lib/crazy_ivan/vendor/json-1.1.7/benchmarks/generator_benchmark.rb', line 50 def benchmark_generator_pretty @result = JSON.pretty_generate(@big) end |