This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-09
Channels
- # announcements (7)
- # beginners (84)
- # calva (3)
- # cljs-dev (19)
- # cljsrn (1)
- # clojure (64)
- # clojure-dev (31)
- # clojure-italy (13)
- # clojure-nl (6)
- # clojure-spec (4)
- # clojure-uk (35)
- # clojurescript (4)
- # clojurex (86)
- # datomic (4)
- # fulcro (11)
- # graalvm (93)
- # joker (5)
- # nrepl (32)
- # off-topic (45)
- # pedestal (4)
- # reagent (3)
- # rewrite-clj (12)
- # sql (17)
- # tools-deps (4)
- # vim (28)
I found this pretty funny https://twitter.com/magit_emacs/status/1193196964176945152
Not sure if it's a testament to the versatility of emacs or Jonas' memory
Is there an easy way in linux to to measure the clojure startup time? $ time clj
doesn't stop the clock until I exit the repl
here's what happens here:
$ time clojure -e '(System/exit 0)'
real 0m3.550s
user 0m11.397s
sys 0m0.387s
i7-8550U CPU @ 1.80GHzfirst run will calculate and cache the classpath so make sure to run it more than once
@UG1C3AD5Z curious to see your second run 😄
$ clojure -e '(System/exit 0)' && time clojure -e '(System/exit 0)'
real 0m1.217s
user 0m2.844s
sys 0m0.114s
it's a trade-off between being able to carry it around with other things and still remain healthy and not 🙂 https://www.notebookcheck.net/LG-Gram-15Z980-i7-8550U-Full-HD-Laptop-Review.321228.0.html
I have legit considered getting myself something with a desktop cpu in. I'd happily carry spare batteries.
well, that's if you are healthy to begin with -- when you already have back problems, it doesn't necessarily work out that way 🙂 i used to carry a notebook around that was > 4kg
Can I play too?
$ clojure -e '(System/exit 0)' && time clojure -e '(System/exit 0)'
real 0m0,908s
user 0m1,821s
sys 0m0,082s
This was on OpenJ9 VM. On Hotspot the numbers are about 2x slower
$ clj
Clojure 1.10.1
user=> (require '[clojure.java.shell :as sh])
nil
user=> (time (sh/sh "clj" "-e" "(+ 1 2 3)"))
"Elapsed time: 770.059226 msecs"
{:exit 0, :out "6\n", :err ""}
$ clj
Clojure 1.10.1
user=> (require '[clojure.java.shell :as sh])
nil
user=> (time (sh/sh "clj" "-e" "(+ 1 2 3)"))
"Elapsed time: 933.252331 msecs"
{:exit 0, :out "6\n", :err ""}