repositories
/
benchmarks-js.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add empty array benchmark
[benchmarks-js.git]
/
benchmark-utils.js
diff --git
a/benchmark-utils.js
b/benchmark-utils.js
index 841cef87a6a9bc32bac9fa2bd161b76870050e3f..56689d652dafd3f4bc92720c0f7cf0ef14f5bb8d 100644
(file)
--- a/
benchmark-utils.js
+++ b/
benchmark-utils.js
@@
-12,6
+12,7
@@
function secureRandom () {
/**
* @param max
* @param min
+ * @returns
*/
function generateRandomInteger (max, min = 0) {
if (max < 0) {
@@
-30,6
+31,7
@@
function generateRandomInteger (max, min = 0) {
/**
* @param ms
+ * @returns
*/
async function sleep (ms) {
return new Promise(resolve => setTimeout(resolve, ms))