Created
March 23, 2026 16:00
-
-
Save hed0rah/4059d072d29274a99ab0f52a752f3aaa to your computer and use it in GitHub Desktop.
Small JS Console Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| console.clear(); | |
| const t0 = performance.now(); | |
| for (let i = 0; i < 1e6; i++); // small workload | |
| const t1 = performance.now(); | |
| console.log("Time:", (t1 - t0).toFixed(2), "ms"); | |
| console.log("Now:", new Date().toLocaleTimeString()); | |
| console.log("Memory:", performance.memory ? performance.memory.usedJSHeapSize : "N/A"); | |
| console.log("CPU cores:", navigator.hardwareConcurrency); | |
| console.log("UserAgent:", navigator.userAgent); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment