Skip to content

Commit 9a81e1a

Browse files
committed
Issue #6
1 parent db7ee7e commit 9a81e1a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

p/performance-vs-ol3/bundle.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@ xhr.onload = function (e) {
2727
if (xhr.status === 200) {
2828
for (var i=0; i<10; i++) {
2929
console.time('JSONIX');
30-
unmarshaller.unmarshalDocument(xhr.responseXML);
30+
var jsonixResult = unmarshaller.unmarshalDocument(xhr.responseXML);
3131
console.timeEnd('JSONIX');
32+
console.log(JSON.stringifu(jsonixResult, null, 2));
3233
console.time('ol3');
33-
format.read(xhr.responseXML);
34+
var ol3Result = format.read(xhr.responseXML);
35+
console.log(JSON.stringifu(ol3Result, null, 2));
3436
console.timeEnd('ol3');
3537
}
3638
} else {

p/performance-vs-ol3/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ xhr.onload = function (e) {
2626
if (xhr.status === 200) {
2727
for (var i=0; i<10; i++) {
2828
console.time('JSONIX');
29-
unmarshaller.unmarshalDocument(xhr.responseXML);
29+
var jsonixResult = unmarshaller.unmarshalDocument(xhr.responseXML);
3030
console.timeEnd('JSONIX');
31+
console.log(JSON.stringifu(jsonixResult, null, 2));
3132
console.time('ol3');
32-
format.read(xhr.responseXML);
33+
var ol3Result = format.read(xhr.responseXML);
34+
console.log(JSON.stringifu(ol3Result, null, 2));
3335
console.timeEnd('ol3');
3436
}
3537
} else {

0 commit comments

Comments
 (0)