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,82 @@
|
|
1
|
+
========================== 2009-04-01T16:48:20 CEST ===========================
|
2
|
+
Benchmarking on ruby 1.8.6 (2008-08-11 patchlevel 287) [i686-linux].
|
3
|
+
Running 'ParserBenchmarkPure' for 1000 iterations/method (compare_time=real)
|
4
|
+
===============================================================================
|
5
|
+
|
6
|
+
This first run is only for warmup.
|
7
|
+
ParserBenchmarkPure#parser:
|
8
|
+
real total user system
|
9
|
+
sum 37.410897017 37.380000000 37.360000000 0.020000000
|
10
|
+
min 0.032916069 0.030000000 0.030000000 0.000000000
|
11
|
+
std- 0.029058517 0.027934111 0.027951551 -0.000426990
|
12
|
+
mean 0.037410897 0.037380000 0.037360000 0.000020000
|
13
|
+
std+ 0.045763277 0.046825889 0.046768449 0.000466990
|
14
|
+
max 0.068524122 0.070000000 0.070000000 0.010000000
|
15
|
+
std 0.008352380 0.009445889 0.009408449 0.000446990
|
16
|
+
std% 22.326062222 25.269901841 25.183215569 2234.948544149
|
17
|
+
harm 0.036161242 0.035525181 0.035515868 nan
|
18
|
+
geo 0.036699193 0.036372385 0.036358664 0.000000000
|
19
|
+
q1 0.033462286 0.030000000 0.030000000 0.000000000
|
20
|
+
med 0.033834100 0.040000000 0.040000000 0.000000000
|
21
|
+
q3 0.036020756 0.040000000 0.040000000 0.000000000
|
22
|
+
1000 26.73018 0.037410897
|
23
|
+
calls calls/sec secs/call
|
24
|
+
|
25
|
+
0.06674 -|
|
26
|
+
0.06318 -|*
|
27
|
+
0.05962 -|******
|
28
|
+
0.05606 -|*
|
29
|
+
0.05250 -|
|
30
|
+
0.04894 -|
|
31
|
+
0.04538 -|
|
32
|
+
0.04182 -|*
|
33
|
+
0.03826 -|****
|
34
|
+
0.03470 -|**************************************************
|
35
|
+
|
36
|
+
Outliers detected with box plot algo (median=0.03383, iqr=0.00256, factor=3.00):
|
37
|
+
high=35 very_high=121
|
38
|
+
|
39
|
+
Ljung-Box statistics: q=2505.23586 (alpha=0.05, df=50).
|
40
|
+
1.00000 >= 0.95000 => Autocorrelation was detected.
|
41
|
+
|
42
|
+
ParserBenchmarkPure#parser:
|
43
|
+
real total user system
|
44
|
+
sum 37.376162529 37.280000000 37.260000000 0.020000000
|
45
|
+
min 0.032336950 0.030000000 0.030000000 0.000000000
|
46
|
+
std- 0.028895529 0.027756750 0.027774096 -0.000426990
|
47
|
+
mean 0.037376163 0.037280000 0.037260000 0.000020000
|
48
|
+
std+ 0.045856796 0.046803250 0.046745904 0.000466990
|
49
|
+
max 0.068592072 0.070000000 0.070000000 0.010000000
|
50
|
+
std 0.008480634 0.009523250 0.009485904 0.000446990
|
51
|
+
std% 22.689953522 25.545198741 25.458680636 2234.948544149
|
52
|
+
harm 0.036080414 0.035400319 0.035391071 nan
|
53
|
+
geo 0.036638902 0.036256656 0.036242979 0.000000000
|
54
|
+
q1 0.033310235 0.030000000 0.030000000 0.000000000
|
55
|
+
med 0.033644676 0.030000000 0.030000000 0.000000000
|
56
|
+
q3 0.036110342 0.040000000 0.040000000 0.000000000
|
57
|
+
1000 26.75502 0.037376163
|
58
|
+
calls calls/sec secs/call
|
59
|
+
|
60
|
+
0.06678 -|
|
61
|
+
0.06315 -|*
|
62
|
+
0.05953 -|*******
|
63
|
+
0.05590 -|
|
64
|
+
0.05228 -|
|
65
|
+
0.04865 -|
|
66
|
+
0.04503 -|
|
67
|
+
0.04140 -|**
|
68
|
+
0.03778 -|********
|
69
|
+
0.03415 -|**************************************************
|
70
|
+
|
71
|
+
Outliers detected with box plot algo (median=0.03364, iqr=0.00280, factor=3.00):
|
72
|
+
high=33 very_high=124
|
73
|
+
|
74
|
+
Ljung-Box statistics: q=3251.86614 (alpha=0.05, df=50).
|
75
|
+
1.00000 >= 0.95000 => Autocorrelation was detected.
|
76
|
+
|
77
|
+
No initial data truncated.
|
78
|
+
=> System may have been in a steady state from the beginning.
|
79
|
+
========================== 2009-04-01T16:49:38 CEST ===========================
|
80
|
+
|
81
|
+
Writing measurement data file '/data/scm/json/benchmarks/data/ParserBenchmarkPure#parser.dat'.
|
82
|
+
Writing autocorrelation plot file '/data/scm/json/benchmarks/data/ParserBenchmarkPure#parser-autocorrelation.dat'.
|