Skip to content

Commit 2bd993e

Browse files
committed
add benchmark.html
1 parent 5ca3a69 commit 2bd993e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/benchmark.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11

22
<script>
3-
var startTime = Date.now();
3+
var Module = { noInitialRun: true };
4+
var startupStart = Date.now();
45
</script>
6+
57
<script src="benchmark.js"></script>
8+
69
<script>
7-
console.log('total time: ' + (Date.now() - startTime));
10+
console.log('startup: ' + (Date.now() - startupStart));
11+
var runStart = Date.now();
12+
Module.callMain();
13+
console.log('runtime: ' + (Date.now() - runStart));
814
</script>
915

0 commit comments

Comments
 (0)