Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
f79dde670879c8d6489ef62765f14cccaef3f4a3
Branches
0.1
0.2
html-sanitizer
html-sanitizer-and-mocha-specs
master
sanitize-oversight
Tags
v0.11.2
v0.11.0
v0.9.2
v0.9.0
v0.8.2
v0.6.2
v0.6.1
v0.6.0
v0.5.1
v0.5.0
v0.4.0
v0.3.2
v0.3.1
v0.3.0
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
Files
Commits
Log
Graph
Stats
xml2json.git
test
coerce-overhead.js
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Raw
View
History
Clone
SSH
HTTPS
Blames found: 7
Mode: javascript
Binary: false
Hang on, we reloading big blames...
bab887a1
var fs = require('fs');
0aa78ed6
var parser = require('../src');
bab887a1
var file = __dirname + '/fixtures/large.xml'; var data = fs.readFileSync(file); // With coercion var t0 = Date.now();
a45eef40
for(var i = 0; i < 10000; i++) {
bab887a1
var result = parser.toJson(data, {reversible: true, coerce: true, object: true}); } console.log(Date.now() - t0); // Without coercion var t0 = Date.now();
a45eef40
for(var i = 0; i < 10000; i++) {
bab887a1
result = parser.toJson(data, {reversible: true, object: true}); } console.log(Date.now() - t0);