-
-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Labels
Milestone
Description
Thank you for writing coconut. I really like the language, but being productive is hard since the compiler is so slow.
$ time python -c "def x(a): return a"
________________________________________________________
Executed in 61.30 millis fish external
usr time 94.30 millis 45.31 millis 48.99 millis
sys time 24.50 millis 14.71 millis 9.78 millis
$ time coconut -c "def x(a): return a"
________________________________________________________
Executed in 10.45 secs fish external
usr time 10.22 secs 0.00 millis 10.22 secs
sys time 0.11 secs 1.58 millis 0.11 secs
$ python -c "$(echo "import time; P = time.perf_counter; a = P(); def f(a): return a; print(P() - a)" | sed 's@; *@\n@g')"
2.8030008252244443e-06
$ coconut -c "$(echo "import time; P = time.perf_counter; a = P(); def f(a): return a; print(P() - a)" | sed 's@; *@\n@g')"
2.4760011001490057e-06