summaryrefslogtreecommitdiffstats
path: root/bench/svg.bench.js
diff options
context:
space:
mode:
Diffstat (limited to 'bench/svg.bench.js')
-rw-r--r--bench/svg.bench.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/bench/svg.bench.js b/bench/svg.bench.js
index 50ef547..bec92a5 100644
--- a/bench/svg.bench.js
+++ b/bench/svg.bench.js
@@ -23,9 +23,9 @@
// Add test
test: function (name, run) {
// run test
- var start = (new Date()).getTime()
+ var start = new Date().getTime()
run()
- this.write(name, (new Date()).getTime() - start)
+ this.write(name, new Date().getTime() - start)
// clear everything
this.clear()
@@ -54,7 +54,12 @@
if (typeof ms === 'number') {
test.className = 'test'
- test.innerHTML = '<span class="name">' + name + '</span> completed in <span class="ms">' + ms + 'ms</span>'
+ test.innerHTML =
+ '<span class="name">' +
+ name +
+ '</span> completed in <span class="ms">' +
+ ms +
+ 'ms</span>'
} else {
test.className = 'test skipped'
test.innerHTML = name + ' (skipped)'