aboutsummaryrefslogtreecommitdiffstats
path: root/bench/runner.html
blob: 6d1bed2603a981200b7b37e2301b6471497f77bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html>
<head>
  <title>SVG.js benchmarker</title>
  <style>
    @import url('https://fonts.googleapis.com/css?family=Inconsolata');
    body {
      font-family: 'Inconsolata', 'Menlo', monospace;
      font-weight: 300;
      color: #999;
      font-size: 14px;
    }
    svg {
      width: 2px;
      height: 2px;
      overflow: hidden;
      position: fixed;
      right: 0;
    }
    span.name {
      color: #B7CD3E;
    }
    span.ms {
      color: #FF0066;
    }
    h1 {
      font-size: 1.2em;
    }
    .test {
      text-indent: 1em;
    }
    .skipped {
      color: #FBCB72;
    }
  </style>
</head>
<body>
  <div id="draw"></div>
  <svg id="native" width="100" height="100" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.com/svgjs"></svg>
  <script src="../dist/svg.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/snap.svg/0.5.1/snap.svg-min.js"></script>
  <script src="svg.bench.js"></script>
  <!--<script src="tests/10000-each.js"></script> -->
  <!-- <script src="tests/10000-rects.js"></script>
  <script src="tests/10000-circles.js"></script>
  <script src="tests/10000-paths.js"></script>
  <script src="tests/10000-boxes.js"></script>
  <script src="tests/10000-pointArray-bbox.js"></script> -->
  <script src="tests/10000-accesses.js"></script>
  <script>
    SVG.bench.run()
  </script>
</body>
</html>