X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=benchmark-utils.js;h=56689d652dafd3f4bc92720c0f7cf0ef14f5bb8d;hb=2deff321e347e2ca6c419c5d98b82fe2f5595a03;hp=841cef87a6a9bc32bac9fa2bd161b76870050e3f;hpb=343cfe4fdb2192fad9436705db894e38fbc3bd2e;p=benchmarks-js.git diff --git a/benchmark-utils.js b/benchmark-utils.js index 841cef8..56689d6 100644 --- 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))