Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created June 16, 2010 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swannodette/440617 to your computer and use it in GitHub Desktop.
Save swannodette/440617 to your computer and use it in GitHub Desktop.
(def bigv (into [] (range 1000000)))
; ~5s
(dotimes [_ 10]
(time
(dotimes [_ 10]
(doall (map inc bigv)))))
; ~1s
(dotimes [_ 10] (time (count (doall (map inc (range 1000000))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment