Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (34 sloc) 581 Bytes
Benchmark
~~~~~~~~~
$ perl parse-json.pl
json.read: 3ms
json.parse: 9ms
json.transform: 6ms
all: 18ms
$ php parse-json.php
json.read: 2ms
json.parse: 28ms
json.transform: 11ms
all: 44ms
$ node parse-json.js
json.read: 4ms
json.parse: 40ms
json.transform: 11ms
all: 68ms
Benchmark (x100)
~~~~~~~~~~~~~~~~
$ perl parse-json.pl
json.read: 3ms
json.parse100: 906ms
json.transform: 6ms
all: 915ms
$ php parse-json.php
json.read: 1ms
json.parse100: 2539ms
json.transform: 6ms
all: 2546ms
$ node parse-json.js
json.read: 4ms
json.parse100: 2504ms
json.transform: 6ms
all: 2515ms