This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-06
Channels
- # beginners (147)
- # boot (12)
- # chestnut (12)
- # cider (22)
- # clara (10)
- # cljs-dev (6)
- # cljs-experience (3)
- # cljsrn (12)
- # clojure (58)
- # clojure-austin (3)
- # clojure-dusseldorf (25)
- # clojure-finland (20)
- # clojure-gamedev (1)
- # clojure-greece (3)
- # clojure-italy (32)
- # clojure-new-zealand (5)
- # clojure-russia (12)
- # clojure-serbia (1)
- # clojure-spec (4)
- # clojure-uk (51)
- # clojurescript (75)
- # cursive (8)
- # datomic (81)
- # fulcro (29)
- # graphql (16)
- # heroku (6)
- # incanter (1)
- # keechma (1)
- # lumo (44)
- # off-topic (21)
- # onyx (22)
- # parinfer (5)
- # portkey (40)
- # re-frame (43)
- # reagent (5)
- # spacemacs (37)
- # specter (8)
- # unrepl (3)
Oddly, applying https://dev.clojure.org/jira/browse/CLJ-99 to ClojureScript slows it down, so perhaps not worth doing. Current:
Benchmarking with V8
[], (apply max-key (fn* [p1__14089#] (Math/tan p1__14089#)) (range 1000)), 1000 runs, 183 msecs
Benchmarking with SpiderMonkey
[], (apply max-key (fn* [p1__14089#] (Math/tan p1__14089#)) (range 1000)), 1000 runs, 67 msecs
Benchmarking with JavaScriptCore
[], (apply max-key (fn* [p1__14089#] (Math/tan p1__14089#)) (range 1000)), 1000 runs, 88 msecs
Benchmarking with Nashorn
[], (apply max-key (fn* [p1__14089#] (Math/tan p1__14089#)) (range 1000)), 1000 runs, 952 msecs
Benchmarking with ChakraCore
[], (apply max-key (fn* [p1__14089#] (Math/tan p1__14089#)) (range 1000)), 1000 runs, 544 msecs
after patch:
Benchmarking with V8
[], (apply max-key (fn* [p1__14105#] (Math/tan p1__14105#)) (range 1000)), 1000 runs, 181 msecs
Benchmarking with SpiderMonkey
[], (apply max-key (fn* [p1__14105#] (Math/tan p1__14105#)) (range 1000)), 1000 runs, 79 msecs
Benchmarking with JavaScriptCore
[], (apply max-key (fn* [p1__14105#] (Math/tan p1__14105#)) (range 1000)), 1000 runs, 143 msecs
Benchmarking with Nashorn
[], (apply max-key (fn* [p1__14105#] (Math/tan p1__14105#)) (range 1000)), 1000 runs, 1140 msecs
Benchmarking with ChakraCore
[], (apply max-key (fn* [p1__14105#] (Math/tan p1__14105#)) (range 1000)), 1000 runs, 361 msecs
do you really want to test with apply?
I guess not much choice. it seems weird to me that these take varargs and not a coll
@alexmiller FWIW, I was blindly attempting to repro the pref gain in the description of https://dev.clojure.org/jira/browse/CLJ-99, which uses (apply max-key #(Math/tan %) (range 1000))
and seems to get a 1.6 speedup in Clojure.
I belatedly realized all that :)