Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Compiling performance

Comparison of the compiling performance using different processors and operating systems.

Note

All numbers in results are given in seconds.

Tested crates

cargo install dmntk --force
cargo install dsntk --force

Tested versions

dmntkdsntk
v0.3.7v0.2.0

macOS

M4 Pro

macOS Tahoe 26.2, M4 Pro (12 cores), 64GB unified memory

dmntkdsntk
24.9827.44
24.6626.60
25.1626.35
25.0326.72
25.1426.63
25.8627.59
25.4126.50
25.9226.71
24.9326.28
24.9526.34
avg: 25.20avg: 26.72

Fedora Linux 43

Intel Core® i5

Intel Core® i5-8500T (6 cores), CPU@2.1GHz, 32GB DDR4@2666MT/s

dmntkdsntk
89.093.0
92.090.0
89.091.0
89.092.0
89.091.0
89.090.0
92.090.0
88.091.0
90.092.0
89.090.0
avg: 89.6avg: 91.0

Intel Core® i7 (tbd)

Intel Core® i7-6700 (4 cores), CPU@3.4GHz, 32GB DDR4@2133MT/s

dmntkdsntk
0.00.0
0.00.0
0.00.0
0.00.0
0.00.0
0.00.0
0.00.0
0.00.0
0.00.0
0.00.0
avg: 0.0avg: 0.0

AMD Ryzen 7 (tbd)

dmntkdsntk
0.00.0
0.00.0
0.00.0
0.00.0
0.00.0
0.00.0
0.00.0
0.00.0
0.00.0
0.00.0
avg: 0.0avg: 0.0

Useful commands

Check memory details:

sudo dmidecode --type memory

Check processor details:

lscpu

Clear swap disk:

sudo swapoff -a
sudo swapon -a

A loop for executing tests quasi-automatically:

for i in $(seq 1 12);
do
  cargo install dmntk --force 2>&1 | grep Finished
done

And some helpful Erlang code snippet:

A = [89.0,92.0,89.0,89.0,89.0,89.0,92.0,88.0,90.0,89.0].
AvgA = lists:foldl(fun(X, Sum) -> X + Sum end, 0, A) / length(A).