Skip to content

Commit 1705f22

Browse files
committed
js: Adjust benchmark code to use decimal GB/s
Similarly to codecbench, decimal GB/s is a more common unit of bandwidth and this ensures consistency between Wasm and native measurements.
1 parent 8c2e0f3 commit 1705f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Promise.all([encoder.ready, decoder.ready]).then(() => {
132132
rep += ' ';
133133
rep += data[key][idx];
134134
rep += ' ms (';
135-
rep += (data[key].bytes / 1024 / 1024 / 1024 / data[key][idx]) * 1000;
135+
rep += (data[key].bytes / 1e9 / data[key][idx]) * 1000;
136136
rep += ' GB/s)';
137137
rep += '\n';
138138
}

0 commit comments

Comments
 (0)