Skip to content

Instantly share code, notes, and snippets.

@hed0rah
Created March 23, 2026 16:00
Show Gist options
  • Select an option

  • Save hed0rah/4059d072d29274a99ab0f52a752f3aaa to your computer and use it in GitHub Desktop.

Select an option

Save hed0rah/4059d072d29274a99ab0f52a752f3aaa to your computer and use it in GitHub Desktop.
Small JS Console Test
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