blob: c1587c62e413072f4e13981603a2823c66053b84 (
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
55
56
57
58
59
60
61
62
63
|
<!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.dev/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 src="tests/10000-transform.js"></script> -->
<script>
SVG.bench.run()
</script>
</body>
</html>
|