Here is my version, I switched to measuring nano seconds to get numbers
different from 0:
# Compile and run with 'nim c -r -d:useRealtimeGC -d:release main.nim'
import strutils
#import times
include "$lib/system/timers"
const
windowSize = 20
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.
Thanks for the link, sounds interesting, will read soon...
For your test code, I am not really sure what the purpose is. Nim's realtime GC
is tunable, so you can get very short pause time with a tradeoff in throughput.
See
I was reading this: [Golang's Real-time GC in Theory and
Practice](https://blog.pusher.com/golangs-real-time-gc-in-theory-and-practice/)
and thought I'd try the same code in Nim.
Here's my initial cut, anyone see anything that should be changed/improved to
make the benchmark more
I was able to make it work.
Inside of my install directory (opt/nim-0.15.2/) I pulled the csources.
git clone --depth 1 https://github.com/nim-lang/csources
then moved the contents (except for c_code directory) up a level
mv [^c][^_]* ../
then ran the newly