aboutsummaryrefslogtreecommitdiffstats
path: root/bench
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2016-08-04 18:41:10 +0200
committerwout <wout@impinc.co.uk>2016-08-04 18:41:10 +0200
commit16575bdca041c6f04042058d05b4867f882b65bd (patch)
treef47f7bd82f0a85ef132f80add9f8910ff8b1b465 /bench
parent7b1055707ca2eb2302049e178f5fa8e927baf0b1 (diff)
downloadsvg.js-16575bdca041c6f04042058d05b4867f882b65bd.tar.gz
svg.js-16575bdca041c6f04042058d05b4867f882b65bd.zip
Added bench styling
Diffstat (limited to 'bench')
-rw-r--r--bench/runner.html10
-rw-r--r--bench/svg.bench.js2
2 files changed, 10 insertions, 2 deletions
diff --git a/bench/runner.html b/bench/runner.html
index 4c40208..0e005f1 100644
--- a/bench/runner.html
+++ b/bench/runner.html
@@ -4,8 +4,10 @@
<title>SVG.js benchmarker</title>
<style>
body {
- font-family: 'Helvetica Light', Helvetica, sans-serif;
+ font-family: 'Menlo', monospace;
font-weight: 300;
+ color: #999;
+ font-size: 14px;
}
svg {
width: 2px;
@@ -14,6 +16,12 @@
position: fixed;
right: 0;
}
+ span.name {
+ color: #B7CD3E;
+ }
+ span.ms {
+ color: #FF0066;
+ }
</style>
</head>
<body>
diff --git a/bench/svg.bench.js b/bench/svg.bench.js
index 653d438..0cf46cc 100644
--- a/bench/svg.bench.js
+++ b/bench/svg.bench.js
@@ -57,7 +57,7 @@
, write: function(name, ms) {
var test = document.createElement('div')
test.className = 'test'
- test.innerHTML = 'Compleded "' + name + '" in ' + ms + 'ms'
+ test.innerHTML = 'Compleded <span class="name">' + name + '</span> in <span class="ms">' + ms + 'ms</span>'
this.pad().appendChild(test)