Skip to content

Instantly share code, notes, and snippets.

@mfikes
Last active August 29, 2015 14:25
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 mfikes/2c704aca591a2bf8442a to your computer and use it in GitHub Desktop.
Save mfikes/2c704aca591a2bf8442a to your computer and use it in GitHub Desktop.
REPL timings

Each of these is after having run each command several times (i.e., not cold):

Planck

orion:planck-demo mfikes$ time ./planck -e '(+ 1 2)'
3

real	0m0.969s
user	0m0.975s
sys	0m0.203s

Clojure 1.7.0

orion:clojure-1.7.0 mfikes$ time java -cp clojure-1.7.0.jar clojure.main -e '(+ 1 2)'
3

real	0m1.247s
user	0m2.214s
sys	0m0.239s

lein repl

orion:clojure-1.7.0 mfikes$ time echo '(+ 1 2)' | lein repl
nREPL server started on port 59045 on host 127.0.0.1 - nrepl://127.0.0.1:59045
REPL-y 0.3.5, nREPL 0.2.6
Clojure 1.6.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_45-b14
    Docs: (doc function-name-here)
          (find-doc "part-of-name-here")
  Source: (source function-name-here)
 Javadoc: (javadoc java-object-or-class-here)
    Exit: Control+D or (exit) or (quit)
 Results: Stored in vars *1, *2, *3, an exception in *e

user=> (+ 1 2)
3
user=> Bye for now!

real	0m4.516s
user	0m10.186s
sys	0m1.363s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment