I was planning on porting these benchmarks to Nim myself, happy to see that you beat me to it :) I will play around with your version and see if I can speed it up.