Clojurians
#cljs-dev
<
2017-11-07
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

thheller10:11:52

wasn’t there a compiler flag in CLJS to get verbose timing output? so I get compile time instead of just

Compiling src/fifth_postulate/ns367.cljs
Compiling src/fifth_postulate/ns411.cljs

rauh10:11:43

@thheller :compiler-stats true

thheller10:11:04

ah perfect, thx

thheller10:11:59

before

Compile fifth-postulate.ns18, elapsed time: 4920.484382 msecs
Compiling src/fifth_postulate/ns345.cljs
Compile fifth-postulate.ns115, elapsed time: 5224.71491 msecs
Compiling src/fifth_postulate/ns388.cljs
Compile fifth-postulate.ns497, elapsed time: 5180.2512 msecs
Compiling src/fifth_postulate/ns219.cljs
Compile fifth-postulate.ns491, elapsed time: 5208.33945 msecs
after
Compile fifth-postulate.ns329, elapsed time: 4029.138924 msecs
Compiling src/fifth_postulate/ns361.cljs
Compile fifth-postulate.ns18, elapsed time: 3996.319256 msecs
Compiling src/fifth_postulate/ns345.cljs
Compile fifth-postulate.ns115, elapsed time: 4105.897968 msecs
Compiling src/fifth_postulate/ns388.cljs
Compile fifth-postulate.ns497, elapsed time: 4113.502885 msecs

thheller10:11:48

seems like a decent perf win but this is really hard to benchmark

thheller10:11:03

do we have an actual benchmark suite to test compiler perf? using https://github.com/thheller/fifth-postulate but thats not exactly real-world like

thheller10:11:10

did a slight tweak to cljs.compiler, would be nice if someone could verify

thheller10:11:34

difference is much smaller after bumping to latest clojure/cljs

thheller10:11:43

but still about 20%

thheller10:11:21

Compiling /Users/zilence/code/fifth-postulate/src/fifth_postulate/ns115.cljs, elapsed time: 1315.745449 msecs
Compiling /Users/zilence/code/fifth-postulate/src/fifth_postulate/ns497.cljs, elapsed time: 1248.76734 msecs
after
Compiling /Users/zilence/code/fifth-postulate/src/fifth_postulate/ns31.cljs, elapsed time: 1086.869523 msecs
Compiling /Users/zilence/code/fifth-postulate/src/fifth_postulate/ns70.cljs, elapsed time: 1046.71296 msecs

rauh10:11:48

@thheller Don't have time to bench, but yeah, the emitter def can be sped up. I once macronized all the emitXYZ stuff and it provided a bit of a boost. Is that compiling in the JVM or self host?

thheller10:11:02

JVM, didn’t test self-host at all. might be bad there.