amuletml / amulet

An ML-like functional programming language
https://amulet.works/
BSD 3-Clause "New" or "Revised" License
328 stars 16 forks source link

Chicken backend is unacceptably slow #226

Closed plt-amy closed 4 years ago

plt-amy commented 5 years ago

Some numbers, based on the stuff you can find over at nofact:

% time lua mandelbrot.lua
0.23user 0.01system 0:00.25elapsed 97%CPU (0avgtext+0avgdata 2668maxresident)k
0inputs+0outputs (0major+151minor)pagefaults 0swaps

% time ./amulet.out
1.15user 0.03system 0:01.19elapsed 99%CPU (0avgtext+0avgdata 5028maxresident)k
0inputs+0outputs (0major+4680minor)pagefaults 0swaps

Ouch!

plt-amy commented 5 years ago

New times:

0.41user 0.00system 0:00.41elapsed 99%CPU (0avgtext+0avgdata 5172maxresident)k
0inputs+0outputs (0major+648minor)pagefaults 0swaps
SquidDev commented 5 years ago

Some quick notes, partially taking from Programming for performance on the Chicken wiki.

Backend related

Optimiser related

CrazedProgrammer commented 4 years ago

This issue should be closed since the Chicken backend has been removed.