aboutsummaryrefslogtreecommitdiffstats
path: root/bench/svg.bench.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2016-08-04 21:19:53 +0200
committerwout <wout@impinc.co.uk>2016-08-04 21:19:53 +0200
commit0e23fcd9ef56f369763505dbb22c3f5ab23a0b17 (patch)
treef1a86a9a4d3cfdcee3b64b135118a5e9a2ed39fd /bench/svg.bench.js
parent16575bdca041c6f04042058d05b4867f882b65bd (diff)
downloadsvg.js-0e23fcd9ef56f369763505dbb22c3f5ab23a0b17.tar.gz
svg.js-0e23fcd9ef56f369763505dbb22c3f5ab23a0b17.zip
Added Snap.svg to benchmarking system
Diffstat (limited to 'bench/svg.bench.js')
-rw-r--r--bench/svg.bench.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/bench/svg.bench.js b/bench/svg.bench.js
index 0cf46cc..7f1aa1e 100644
--- a/bench/svg.bench.js
+++ b/bench/svg.bench.js
@@ -6,6 +6,7 @@
, _before: function() {}
, _after: function() {}
, draw: SVG('draw')
+ , snap: Snap(100, 100)
, raw: document.getElementById('native')
// Add test
@@ -57,7 +58,7 @@
, write: function(name, ms) {
var test = document.createElement('div')
test.className = 'test'
- test.innerHTML = 'Compleded <span class="name">' + name + '</span> in <span class="ms">' + ms + 'ms</span>'
+ test.innerHTML = 'Completed <span class="name">' + name + '</span> in <span class="ms">' + ms + 'ms</span>'
this.pad().appendChild(test)
@@ -81,6 +82,7 @@
while(this.raw.hasChildNodes())
this.raw.removeChild(this.raw.lastChild)
this.draw.clear()
+ this.snap.clear()
}
}