File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -27,10 +27,12 @@ xhr.onload = function (e) {
27
27
if (xhr.status === 200) {
28
28
for (var i=0; i<10; i++) {
29
29
console.time('JSONIX');
30
- unmarshaller.unmarshalDocument(xhr.responseXML);
30
+ var jsonixResult = unmarshaller.unmarshalDocument(xhr.responseXML);
31
31
console.timeEnd('JSONIX');
32
+ console.log(JSON.stringifu(jsonixResult, null, 2));
32
33
console.time('ol3');
33
- format.read(xhr.responseXML);
34
+ var ol3Result = format.read(xhr.responseXML);
35
+ console.log(JSON.stringifu(ol3Result, null, 2));
34
36
console.timeEnd('ol3');
35
37
}
36
38
} else {
Original file line number Diff line number Diff line change @@ -26,10 +26,12 @@ xhr.onload = function (e) {
26
26
if ( xhr . status === 200 ) {
27
27
for ( var i = 0 ; i < 10 ; i ++ ) {
28
28
console . time ( 'JSONIX' ) ;
29
- unmarshaller . unmarshalDocument ( xhr . responseXML ) ;
29
+ var jsonixResult = unmarshaller . unmarshalDocument ( xhr . responseXML ) ;
30
30
console . timeEnd ( 'JSONIX' ) ;
31
+ console . log ( JSON . stringifu ( jsonixResult , null , 2 ) ) ;
31
32
console . time ( 'ol3' ) ;
32
- format . read ( xhr . responseXML ) ;
33
+ var ol3Result = format . read ( xhr . responseXML ) ;
34
+ console . log ( JSON . stringifu ( ol3Result , null , 2 ) ) ;
33
35
console . timeEnd ( 'ol3' ) ;
34
36
}
35
37
} else {
You can’t perform that action at this time.
0 commit comments