nim -v
Compiled at 2020-06-23
git hash: c3459c7b14
With `nim c -d:danger --panics:on --gc:arc`:
Maximum resident set size (kbytes): 395352
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 99524
Voluntary context switches: 1
Involuntary context switches: 20
With `nim c -d:danger --panics:on` (default gc)
Maximum resident set size (kbytes): 282964
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 70471
Voluntary context switches: 1
Involuntary context switches: 10
Both tests are with a main function and it makes no difference.