Switch order of performance.now check in perf/index.html and convert benchmarks to strings in perf.js for better compatibility with older browsers.

Former-commit-id: d766316c9c162e31dd0471d80b50ecfd1da2c9a8
This commit is contained in:
John-David Dalton
2012-08-19 23:45:16 -07:00
parent 260ff6de3e
commit de6a3c5ab1
2 changed files with 648 additions and 793 deletions

View File

@@ -36,7 +36,7 @@
// is the applet really needed?
while (!(measured = new Date - begin)) { }
if (measured != 1 && !((perfNow = window.performance) && typeof (perfNow.webkitNow || perfNow.now) == 'function')) {
if (measured != 1 && !((perfNow = window.performance) && typeof (perfNow.now || perfNow.webkitNow) == 'function')) {
// load applet
document.write('<applet code="nano" archive="../vendor/benchmark.js/nano.jar"></applet>');
}

File diff suppressed because it is too large Load Diff