diff --git a/collision_test2.ts b/collision_test2.ts index 91a56bd..251b40d 100644 --- a/collision_test2.ts +++ b/collision_test2.ts @@ -64,7 +64,7 @@ async function main() { } if (counter % 1000 == 0) { let timeTook = Math.floor((Date.now() - startTime) / 100) / 10 - console.log(`Last string: ${str}, Last hash: ${h}, Collisions: ${collisions.length}, Time: ${timeTook}s`) + console.log(`Last string: ${str}, Last hash: ${h}, Collisions: ${collisions.length}, Time: ${timeTook}s, Speed: ${Math.floor(counter/timeTook*10)/10} hash/s`) await sleep(1) } if (counter % 10000 == 0) { diff --git a/hash.ts b/hash.ts index f9739ba..9976181 100644 --- a/hash.ts +++ b/hash.ts @@ -8,7 +8,7 @@ function printHelp() { console.log("IGA commandline tool v" + version) console.log("Usage: tsx hash.ts [] [options]"); console.log("Options:"); - console.log("[] [] []"); + console.log("[] []"); } if (args[0] == "hash") {