[nim-dev] Re: Nim GC Performance

  • From: "JohnS" <dmarc-noreply-outsider@xxxxxxxxxxxxx> (Redacted sender "john_scillieri" for DMARC)
  • To: nim-dev@xxxxxxxxxxxxx
  • Date: Sat, 3 Dec 2016 03:30:09 +0000

Follow on comments:

Removed extraneous spaces after ( and before ).

You'll take the spaces from my cold, dead fingers. ;)

Rewrote code to make it more idiomatic.

Using seq[byte] instead of ref array[1024, byte] (this is not idiomatic at 
all)

Tracking. I used the array/ref array because that seemed a more comparable data 
structure to Go's array & slice types but I agree that idiomatic code is 
probably better for a benchmark like this. 

Switched from cpuTime to epochTime, the former only measures CPU time(!).

I originally used epochTime but the STL docs say:

This may be more useful for benchmarking than epochTime.

Thanks for all the feedback everyone!

Other related posts: