Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ time node --expose-gc --trace-gc --trace-gc-verbose for-nodejs.js 13231
[1776:0x3153a50] Heap growing factor 4.0 based on mu=0.970, speed_ratio=-nan (gc=0, mutator=0)
[1776:0x3153a50] Grow: old size: 3897 KB, new limit: 16598 KB (4.0)
[1776:0x3153a50] 145 ms: Mark-sweep 4.7 (10.8) -> 4.3 (11.8) MB, 11.6 / 0.0 ms Isolate::RequestGarbageCollection GC in old space requested
[1776:0x3153a50] Memory allocator, used: 12068 KB, available: 1454300 KB
[1776:0x3153a50] New space, used: 534 KB, available: 473 KB, committed: 2048 KB
[1776:0x3153a50] Old space, used: 1219 KB, available: 0 KB, committed: 1944 KB
[1776:0x3153a50] Code space, used: 738 KB, available: 0 KB, committed: 2048 KB
[1776:0x3153a50] Map space, used: 131 KB, available: 0 KB, committed: 1108 KB
[1776:0x3153a50] Large object space, used: 1807 KB, available: 1453259 KB, committed: 1848 KB
[1776:0x3153a50] All spaces, used: 4431 KB, available: 1453732 KB, committed: 8996 KB
[1776:0x3153a50] External memory reported: 911 KB
[1776:0x3153a50] Total time spent in GC : 11.6 ms
Node version: v7.4.0
{ rss: '22.224896MB',
heapTotal: '11.309056MB',
heapUsed: '6.394536MB',
external: '0.933663MB' }
Elapsed: 0.128s
real 0m0.394s
user 0m0.281s
sys 0m0.094s
$ time node --expose-gc --trace-gc --trace-gc-verbose for-nodejs.js 13232
[1782:0x3c9ca50] Heap growing factor 4.0 based on mu=0.970, speed_ratio=-nan (gc=0, mutator=0)
[1782:0x3c9ca50] Grow: old size: 3897 KB, new limit: 16598 KB (4.0)
[1782:0x3c9ca50] 149 ms: Mark-sweep 4.7 (10.8) -> 4.3 (11.8) MB, 14.4 / 0.0 ms Isolate::RequestGarbageCollection GC in old space requested
[1782:0x3c9ca50] Memory allocator, used: 12068 KB, available: 1454300 KB
[1782:0x3c9ca50] New space, used: 534 KB, available: 473 KB, committed: 2048 KB
[1782:0x3c9ca50] Old space, used: 1219 KB, available: 0 KB, committed: 1944 KB
[1782:0x3c9ca50] Code space, used: 738 KB, available: 0 KB, committed: 2048 KB
[1782:0x3c9ca50] Map space, used: 131 KB, available: 0 KB, committed: 1108 KB
[1782:0x3c9ca50] Large object space, used: 1807 KB, available: 1453259 KB, committed: 1848 KB
[1782:0x3c9ca50] All spaces, used: 4431 KB, available: 1453732 KB, committed: 8996 KB
[1782:0x3c9ca50] External memory reported: 911 KB
[1782:0x3c9ca50] Total time spent in GC : 14.4 ms
Node version: v7.4.0
{ rss: '1906.487296MB',
heapTotal: '16.244736MB',
heapUsed: '11.017768MB',
external: '0.933663MB' }
Elapsed: 11.627s
[1782:0x3c9ca50] Memory reducer: call rate 0.007, low alloc, foreground
[1782:0x3c9ca50] Memory reducer: started GC #1
real 0m23.511s
user 0m3.188s
sys 0m3.672s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment