-
Notifications
You must be signed in to change notification settings - Fork 10
/
index.html
64 lines (58 loc) · 1.42 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
62
63
64
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Wasm vs JS Tuner</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script src="wasm-tuner.js"></script>
<style>
body {
text-align: center;
}
.columns {
display: flex;
}
.columns > div {
flex: 1;
}
.pitch {
font-weight: bold;
}
.aet {
font-weight: bold;
}
@media(max-width: 600px) {
.columns {
display: block;
}
.columns > div:first-child {
border-bottom: 1px solid #ddd;
padding-bottom: 20px;
}
}
</style>
</head>
<body>
<h1>Pitch detection comparison between Wasm and JS</h1>
<div class="columns">
<div>
<h5>WASM</h5>
<p>Pitch</p>
<p id="wasmPitch" class="pitch"> - </p>
<p>Average execution time</p>
<p id="wasmExecTime" class="aet"> - </p>
<button onclick="toggleWasm(this)">Start</button>
</div>
<div>
<h5>JavaScript</h5>
<p>Pitch</p>
<p id="jsPitch" class="pitch"> - </p>
<p>Average execution time</p>
<p id="jsExecTime" class="aet"> - </p>
<button onclick="toggleJs(this)">Start</button>
</div>
</div>
<script src="script.js"></script>
</body>
</html>