From c7c5736ada62e7f8679317a4f57f0bc50f2c91dd Mon Sep 17 00:00:00 2001 From: Luke Childs Date: Fri, 10 May 2019 19:07:16 +0700 Subject: [PATCH] Update benchmark script with total attempts --- bench/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/index.js b/bench/index.js index 7b7787f..541126a 100644 --- a/bench/index.js +++ b/bench/index.js @@ -47,7 +47,7 @@ options.forEach(options => { if (!isCI) { vain.on('update', data => { const duration = prettyMs(data.duration); - const {attempts} = data; + const attempts = data.attempts.toLocaleString(); const speed = `${data.addressesPerSecond.toLocaleString()} addr/s`; console.log(`Duration: ${duration} | Attempts: ${attempts} | Speed: ${speed}`); }); @@ -71,7 +71,7 @@ options.forEach(options => { } console.log(); - console.log(`Found in ${prettyMs(data.duration)}`); + console.log(`Found in ${prettyMs(data.duration)} after ${data.attempts.toLocaleString()} attempts`); console.log(`Speed: ${data.addressesPerSecond.toLocaleString()} addr/s`); });