json_pure 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES +9 -0
- data/Rakefile +47 -53
- data/VERSION +1 -1
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log +52 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat +1000 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat +1001 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat +900 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat +901 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat +1000 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat +1001 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log +261 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat +1000 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat +1001 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat +1000 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat +1001 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat +1000 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat +1001 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log +262 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat +1000 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat +1001 -0
- data/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log +82 -0
- data/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log +34 -0
- data/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat +900 -0
- data/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat +901 -0
- data/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log +81 -0
- data/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat +1000 -0
- data/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat +1001 -0
- data/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log +82 -0
- data/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat +1000 -0
- data/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat +1001 -0
- data/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log +82 -0
- data/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat +1000 -0
- data/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat +1001 -0
- data/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log +82 -0
- data/benchmarks/generator_benchmark.rb +162 -0
- data/benchmarks/parser_benchmark.rb +193 -0
- data/bin/edit_json.rb +0 -1
- data/bin/prettify_json.rb +0 -1
- data/doc-templates/main.txt +284 -0
- data/ext/json/ext/generator/extconf.rb +2 -0
- data/ext/json/ext/generator/generator.c +62 -18
- data/ext/json/ext/parser/extconf.rb +2 -0
- data/ext/json/ext/parser/parser.c +128 -81
- data/ext/json/ext/parser/parser.rl +31 -7
- data/ext/json/ext/parser/unicode.c +4 -4
- data/lib/json/add/core.rb +1 -1
- data/lib/json/editor.rb +11 -2
- data/lib/json/ext.rb +2 -0
- data/lib/json/pure/generator.rb +77 -41
- data/lib/json/pure/parser.rb +6 -2
- data/lib/json/pure.rb +2 -0
- data/lib/json/version.rb +1 -1
- data/lib/json.rb +0 -221
- data/tests/test_json.rb +7 -4
- data/tests/test_json_addition.rb +8 -5
- data/tests/test_json_fixtures.rb +6 -2
- data/tests/test_json_generate.rb +8 -2
- data/tests/test_json_rails.rb +30 -2
- data/tests/test_json_unicode.rb +8 -7
- data/tools/fuzz.rb +0 -1
- data/tools/server.rb +0 -1
- metadata +46 -9
- data/benchmarks/benchmark.txt +0 -133
- data/benchmarks/benchmark_generator.rb +0 -48
- data/benchmarks/benchmark_parser.rb +0 -26
- data/benchmarks/benchmark_rails.rb +0 -26
- data/tests/runner.rb +0 -25
@@ -0,0 +1,81 @@
|
|
1
|
+
========================== 2009-04-01T16:49:42 CEST ===========================
|
2
|
+
Benchmarking on ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux].
|
3
|
+
Running 'ParserBenchmarkExt' for 1000 iterations/method (compare_time=real)
|
4
|
+
===============================================================================
|
5
|
+
|
6
|
+
This first run is only for warmup.
|
7
|
+
ParserBenchmarkExt#parser:
|
8
|
+
real total user system
|
9
|
+
sum 1.733042240 1.770000000 1.760000000 0.010000000
|
10
|
+
min 0.000833988 0.000000000 0.000000000 0.000000000
|
11
|
+
std- -0.001838092 -0.003229209 -0.003232727 -0.000306228
|
12
|
+
mean 0.001733042 0.001770000 0.001760000 0.000010000
|
13
|
+
std+ 0.005304177 0.006769209 0.006752727 0.000326228
|
14
|
+
max 0.032314062 0.040000000 0.040000000 0.010000000
|
15
|
+
std 0.003571134 0.004999209 0.004992727 0.000316228
|
16
|
+
std% 206.061583704 282.441194727 283.677695666 3162.277660168
|
17
|
+
harm 0.001283614 nan nan nan
|
18
|
+
geo 0.001337350 0.000000000 0.000000000 0.000000000
|
19
|
+
q1 0.001236916 0.000000000 0.000000000 0.000000000
|
20
|
+
med 0.001246929 0.000000000 0.000000000 0.000000000
|
21
|
+
q3 0.001260996 0.000000000 0.000000000 0.000000000
|
22
|
+
1000 577.01998 0.001733042
|
23
|
+
calls calls/sec secs/call
|
24
|
+
|
25
|
+
0.03074 -|*
|
26
|
+
0.02759 -|
|
27
|
+
0.02444 -|
|
28
|
+
0.02130 -|
|
29
|
+
0.01815 -|
|
30
|
+
0.01500 -|
|
31
|
+
0.01185 -|
|
32
|
+
0.00870 -|
|
33
|
+
0.00556 -|
|
34
|
+
0.00241 -|**************************************************
|
35
|
+
|
36
|
+
Outliers detected with box plot algo (median=0.00125, iqr=0.00002, factor=3.00):
|
37
|
+
very_low=32 low=15 high=77 very_high=135
|
38
|
+
|
39
|
+
Ljung-Box statistics: q=13.14182 (alpha=0.05, df=50).
|
40
|
+
0.00000 < 0.95000 => No autocorrelation was detected.
|
41
|
+
|
42
|
+
ParserBenchmarkExt#parser:
|
43
|
+
real total user system
|
44
|
+
sum 1.624776602 1.620000000 1.620000000 0.000000000
|
45
|
+
min 0.000819921 0.000000000 0.000000000 0.000000000
|
46
|
+
std- -0.001936067 -0.003223194 -0.003223194 0.000000000
|
47
|
+
mean 0.001805307 0.001800000 0.001800000 0.000000000
|
48
|
+
std+ 0.005546681 0.006823194 0.006823194 0.000000000
|
49
|
+
max 0.032595873 0.040000000 0.040000000 0.000000000
|
50
|
+
std 0.003741374 0.005023194 0.005023194 0.000000000
|
51
|
+
std% 207.243050150 279.066347558 279.066347558 nan
|
52
|
+
harm 0.001297084 nan nan nan
|
53
|
+
geo 0.001358799 0.000000000 0.000000000 0.000000000
|
54
|
+
q1 0.001241922 0.000000000 0.000000000 0.000000000
|
55
|
+
med 0.001249075 0.000000000 0.000000000 0.000000000
|
56
|
+
q3 0.001264811 0.000000000 0.000000000 0.000000000
|
57
|
+
900 553.92230 0.001805307
|
58
|
+
calls calls/sec secs/call
|
59
|
+
|
60
|
+
0.03101 -|*
|
61
|
+
0.02783 -|
|
62
|
+
0.02465 -|
|
63
|
+
0.02147 -|
|
64
|
+
0.01830 -|
|
65
|
+
0.01512 -|
|
66
|
+
0.01194 -|
|
67
|
+
0.00876 -|
|
68
|
+
0.00559 -|
|
69
|
+
0.00241 -|**************************************************
|
70
|
+
|
71
|
+
Outliers detected with box plot algo (median=0.00125, iqr=0.00002, factor=3.00):
|
72
|
+
very_low=15 low=9 high=76 very_high=110
|
73
|
+
|
74
|
+
Ljung-Box statistics: q=15.89429 (alpha=0.05, df=50).
|
75
|
+
0.00000 < 0.95000 => No autocorrelation was detected.
|
76
|
+
|
77
|
+
Truncated initial 100 measurements: 1000 -> 900 (-10.00%).
|
78
|
+
========================== 2009-04-01T16:49:49 CEST ===========================
|
79
|
+
|
80
|
+
Writing measurement data file '/data/scm/json/benchmarks/data/ParserBenchmarkExt#parser.dat'.
|
81
|
+
Writing autocorrelation plot file '/data/scm/json/benchmarks/data/ParserBenchmarkExt#parser-autocorrelation.dat'.
|