TIL that #JS has builtin timing methods. console.time("long-op"); console.timeEnd("long-op");