function compare(name1, res1, name2, res2) {
    var result = {
        name1: name1,
        name2: name2,
        time1: 0,
        time2: 0,
        parsed_files: 0,
        parsed_bytes: 0,
        skipped_files: 0,
        skipped_bytes: 0,
        ratios_2over1: [],
    };
    for (var path of Object.keys(res1)) {
        if (!(path in res1 && path in res2)) {
            continue;
        }
        var p1 = res1[path];
        var p2 = res2[path];
        if (p1.time !== null && p2.time !== null) {
            result.time1 += p1.time;
            result.time2 += p2.time;
            result.parsed_files += 1;
            result.parsed_bytes += p1.bytes;
            result.ratios_2over1.push(p2.time / p1.time);
        } else {
            result.skipped_files += 1;
            result.skipped_bytes += p1.bytes;
        }
    }
    return result;
}
// speed ratios for each file tested.
speed ratios for each file tested.
speed ratios for each file tested .
function compare(name1, res1, name2, res2) {
    var result = {
        name1: name1,
        name2: name2,
        time1: 0,
        time2: 0,
        parsed_files: 0,
        parsed_bytes: 0,
        skipped_files: 0,
        skipped_bytes: 0,
        ratios_2over1: [],
    };
    for (var path of Object.keys(res1)) {
        if (!(path in res1 && path in res2)) {
            continue;
        }
        var p1 = res1[path];
        var p2 = res2[path];
        if (p1.time !== null && p2.time !== null) {
            result.time1 += p1.time;
            result.time2 += p2.time;
            result.parsed_files += 1;
            result.parsed_bytes += p1.bytes;
            result.ratios_2over1.push(p2.time / p1.time);
        } else {
            result.skipped_files += 1;
            result.skipped_bytes += p1.bytes;
        }
    }
    return result;
}
function compare ( name1 , res1 , name2 , res2 ) { var result = { name1 : name1 , name2 : name2 , time1 : 0 , time2 : 0 , parsed_files : 0 , parsed_bytes : 0 , skipped_files : 0 , skipped_bytes : 0 , ratios_2over1 : [ ] , } ; for ( var path of Object . keys ( res1 ) ) { if ( ! ( path in res1 && path in res2 ) ) { continue ; } var p1 = res1 [ path ] ; var p2 = res2 [ path ] ; if ( p1 . time !== null && p2 . time !== null ) { result . time1 += p1 . time ; result . time2 += p2 . time ; result . parsed_files += 1 ; result . parsed_bytes += p1 . bytes ; result . ratios_2over1 . push ( p2 . time / p1 . time ) ; } else { result . skipped_files += 1 ; result . skipped_bytes += p1 . bytes ; } } return result ; }
speed ratios for each file tested.
speed ratios for each file tested .