-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
61 lines (56 loc) · 1.48 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>pex-math by pex-gl (https://github.com/pex-gl)</title>
<style>
:root {
--color-dark: #404040;
--color-light: #f2f2f2;
--color-accent: #fd5e62;
}
body {
margin: 0;
overscroll-behavior: none;
font-family: sans-serif;
color: var(--color-light);
background-color: var(--color-dark);
}
main {
padding: 0 20px;
}
</style>
</head>
<body>
<main>
<h1>pex-math</h1>
<p>Open your console</p>
</main>
<script
async
src="https://ga.jspm.io/npm:[email protected]/dist/es-module-shims.js"
></script>
<script type="importmap">
{
"imports": {
"nanobench": "./benchmark/utils.js",
"gl-matrix": "https://unpkg.com/[email protected]/esm/index.js"
}
}
</script>
<script type="module">
import "./benchmark/bench-gl-matrix.js";
import "./benchmark/bench-pex.js";
setTimeout(() => {
console.log("[0] = gl-matrix / [1] = pex-math");
const sortObject = (o) =>
Object.keys(o)
.sort()
.reduce((r, k) => ((r[k] = o[k]), r), {});
console.table(sortObject(window.benchLogs));
}, 3000);
</script>
</body>
</html>