-
Have you encapsulated all you code inside a function or you have been running in a global scope?
(running code in global scope with global variables tends to be much slower) -
Have you measured time on a second run?
(The first time you run you code it is compiled)
2 Likes