Naive node.js faster than naive LDC2?
jamtlu at gmail.com
Fri Aug 21 23:10:53 UTC 2020
LDC 1.23.0 (Installed from dlang.org)
ldc2 -release -mcpu=native -O3 -ffast-math --fp-contract=fast
Node v14.40 (V8 8.1.307.31)
Dlang trials: 2957 2560 2048 Average: 2521
Node.JS trials: 1988 2567 1863 Average: 2139
- I had to reinstall Dlang from the install script
- I was initially confused why -mtune=native didn't work, and
had to read documentation. Would have been nice if the compiler
told me -mcpu=native was what I needed.
- I skipped -march=native. Did not find information on the wiki
- Node.js compiles faster and uses a compilation cache
Mandatory citation: https://github.com/brion/mandelbrot-shootout
More information about the Digitalmars-d