Hasty
.dev
Performance. Unbound.
New Benchmark
•
New Notebook
•
Shorts
Hasty
.dev
New Benchmark
•
New Notebook
•
Shorts
Shared Benchmark
Globals
const checkedNames = new Set(); function generateRandomName(length) { const characters = 'abcdefghijklmnopqrstuvwxyz0123456789_.'; let result = ''; let lastChar = ''; do { for (let i = 0; i < length; i++) { let newChar; do { newChar = characters.charAt(Math.floor(Math.random() * characters.length)); if (lastChar === '.' && newChar === '.') { newChar = characters.charAt(Math.floor(Math.random() * (characters.length - 1))); } } while (newChar === lastChar); result += newChar; lastChar = newChar; } } while (checkedNames.has(result)) return result; }
Cases
Add case
0 ops/s
while (checkedNames.size > 50e3) { checkedNames.add(generateRandomName) }
Epochs:
Timeout:
Embed
Share
Options
Run
Shorts
Notebook Demo
Blog
Donate
Wall of love 😻
Popular
Telegram
Uptime
Bluesky
New Benchmark
New Notebook
HASTY.dev
Explore HASTY, your go-to platform for reliable JS benchmark tests. Improve your JavaScript performance and coding efficiency today by optimizing it.
https://techhub.social/@Mobilpadde
https://techhub.social/@Mobilpadde/112172445238616181
https://techhub.social/@Mobilpadde/112172445238616181