I [experimented a bit with benchmarking this code (see link for 
details)](https://github.com/lbmn/nim/tree/master/bench/amicableInt).

Some observations:

  * Rust (v1.16.0) is slower than Nim (v0.16.0) on all int sizes except i32, 
where it takes off at the speed of Clang.
  * Rust binary sizes are **421** times those of C / 88x Nim!
  * Rust's i16 is almost as slow as its i64 - why?
  * [ICC](https://en.wikipedia.org/wiki/Intel_C%2B%2B_Compiler) (v17.0.2) is 
MUCH faster on 
[my](http://libman.org/notes/hardware/hp-envy-m7-n109dx/20170409-lshw.txt) 
Intel i7-6500U laptop than GCC (v6.2.0) or LLVM/Clang (v3.9.0). In theory this 
should give Nim an added advantage over Rust (which is married to LLVM), 
although I was not yet able to get Nim working with cc=icc.


Reply via email to