Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c2124c6

Browse files
committedMar 5, 2021
enable benchmarking
1 parent 3ace31e commit c2124c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,23 +50,23 @@
5050
debug("md6-wasm library version: "+md6.version());
5151
debug("*Result = "+md6.digestHex(inputText,digestSize));
5252
debug("*Done");
53-
/* debug("***Benchmarking...");
53+
debug("***Benchmarking...");
5454

5555
var bench_count = 100000
5656
var bench_time = 0;
5757

58-
console.log(inputText,digestSize,variant)
58+
console.log(inputText,digestSize)
5959
for(var i=0; i< bench_count; i++){
6060
var t0 = performance.now()
61-
md6.digestHex(inputText,digestSize,variant);
61+
md6.digestHex(inputText,digestSize);
6262
var t1 = performance.now()
6363
var td = t1 - t0;
6464
bench_time += td;
6565
}
6666

6767
var bench_average = bench_time / bench_count;
6868

69-
debug("* Average of "+bench_average+"ms (sample size:"+bench_count+")");*/
69+
debug("* Average of "+bench_average+"ms (sample size:"+bench_count+")");
7070
}
7171
</script>
7272

0 commit comments

Comments
 (0)
Please sign in to comment.