Skip to content

Instantly share code, notes, and snippets.

@tmcw
Created December 23, 2014 19:36
Show Gist options
  • Save tmcw/097ef3d790909046b9b0 to your computer and use it in GitHub Desktop.
Save tmcw/097ef3d790909046b9b0 to your computer and use it in GitHub Desktop.
Statistical profiling result from v8.log, (3864 ticks, 5 unaccounted, 0 excluded).
[Unknown]:
ticks total nonlib name
5 0.1%
[Shared libraries]:
ticks total nonlib name
443 11.5% 0.0% /usr/local/bin/node
49 1.3% 0.0% /usr/lib/system/libsystem_platform.dylib
34 0.9% 0.0% /usr/lib/system/libsystem_pthread.dylib
3 0.1% 0.0% /usr/lib/system/libsystem_kernel.dylib
[JavaScript]:
ticks total nonlib name
2593 67.1% 77.8% LazyCompile: *module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/node_modules/turf-inside/index.js:5
197 5.1% 5.9% LazyCompile: *forEach native array.js:1087
168 4.3% 5.0% Stub: CompareStub_EQ
129 3.3% 3.9% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:7
104 2.7% 3.1% Builtin: A builtin from the snapshot
74 1.9% 2.2% LazyCompile: IN native runtime.js:354
56 1.4% 1.7% Stub: CEntryStub
6 0.2% 0.2% LazyCompile: *hexagon /Users/tmcw/src/turf-perf/node_modules/turf-hex/index.js:16
2 0.1% 0.1% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:6
1 0.0% 0.0% Stub: FastNewClosureStub
1 0.0% 0.0% LazyCompile: ~hexagon /Users/tmcw/src/turf-perf/node_modules/turf-hex/index.js:16
1 0.0% 0.0% LazyCompile: ~forEach native array.js:1087
1 0.0% 0.0% LazyCompile: ~exports.resolve path.js:304
1 0.0% 0.0% LazyCompile: *module.exports /Users/tmcw/src/turf-perf/node_modules/turf-hex/node_modules/turf-polygon/index.js:1
[C++]:
ticks total nonlib name
[GC]:
ticks total nonlib name
96 2.5%
[Bottom up (heavy) profile]:
Note: percentage shows a share of a particular caller in the total
amount of its parent calls.
Callers occupying less than 2.0% are not shown.
ticks parent name
2593 67.1% LazyCompile: *module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/node_modules/turf-inside/index.js:5
2585 99.7% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:7
2583 99.9% LazyCompile: *forEach native array.js:1087
2575 99.7% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:6
2575 100.0% LazyCompile: ~forEach native array.js:1087
2575 100.0% LazyCompile: ~module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:4
443 11.5% /usr/local/bin/node
316 71.3% LazyCompile: IN native runtime.js:354
313 99.1% LazyCompile: *forEach native array.js:1087
311 99.4% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:6
311 100.0% LazyCompile: ~forEach native array.js:1087
311 100.0% LazyCompile: ~module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:4
10 2.3% LazyCompile: ~NativeModule.compile node.js:915
10 100.0% LazyCompile: ~NativeModule.require node.js:870
3 30.0% LazyCompile: ~startup node.js:30
3 100.0% Function: ~<anonymous> node.js:27
2 20.0% LazyCompile: ~tryFile module.js:138
2 100.0% LazyCompile: ~Module._findPath module.js:160
2 100.0% LazyCompile: ~Module._resolveFilename module.js:323
2 20.0% Function: ~<anonymous> tty.js:1
2 100.0% LazyCompile: ~NativeModule.compile node.js:915
2 100.0% LazyCompile: ~NativeModule.require node.js:870
2 20.0% Function: ~<anonymous> stream.js:1
2 100.0% LazyCompile: ~NativeModule.compile node.js:915
2 100.0% LazyCompile: ~NativeModule.require node.js:870
1 10.0% Function: ~<anonymous> assert.js:1
1 100.0% LazyCompile: ~NativeModule.compile node.js:915
1 100.0% LazyCompile: ~NativeModule.require node.js:870
197 5.1% LazyCompile: *forEach native array.js:1087
194 98.5% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:6
194 100.0% LazyCompile: ~forEach native array.js:1087
194 100.0% LazyCompile: ~module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:4
194 100.0% Function: ~<anonymous> /Users/tmcw/src/turf-perf/index.js:1
194 100.0% LazyCompile: ~Module._compile module.js:374
168 4.3% Stub: CompareStub_EQ
168 100.0% LazyCompile: *module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/node_modules/turf-inside/index.js:5
168 100.0% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:7
168 100.0% LazyCompile: *forEach native array.js:1087
167 99.4% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:6
167 100.0% LazyCompile: ~forEach native array.js:1087
129 3.3% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:7
124 96.1% LazyCompile: *forEach native array.js:1087
123 99.2% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:6
123 100.0% LazyCompile: ~forEach native array.js:1087
123 100.0% LazyCompile: ~module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:4
123 100.0% Function: ~<anonymous> /Users/tmcw/src/turf-perf/index.js:1
104 2.7% Builtin: A builtin from the snapshot
67 64.4% LazyCompile: *forEach native array.js:1087
67 100.0% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:6
67 100.0% LazyCompile: ~forEach native array.js:1087
67 100.0% LazyCompile: ~module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:4
67 100.0% Function: ~<anonymous> /Users/tmcw/src/turf-perf/index.js:1
24 23.1% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:6
24 100.0% LazyCompile: ~forEach native array.js:1087
24 100.0% LazyCompile: ~module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:4
24 100.0% Function: ~<anonymous> /Users/tmcw/src/turf-perf/index.js:1
24 100.0% LazyCompile: ~Module._compile module.js:374
[Top down (heavy) profile]:
Note: callees occupying less than 0.1% are not shown.
inclusive self name
ticks total ticks total
3733 96.6% 0 0.0% Function: ~<anonymous> node.js:27
3733 96.6% 0 0.0% LazyCompile: ~startup node.js:30
3725 96.4% 0 0.0% LazyCompile: ~Module.runMain module.js:495
3725 96.4% 0 0.0% LazyCompile: Module._load module.js:275
3719 96.2% 0 0.0% LazyCompile: ~Module.load module.js:346
3718 96.2% 0 0.0% LazyCompile: ~Module._extensions..js module.js:472
3717 96.2% 0 0.0% LazyCompile: ~Module._compile module.js:374
3717 96.2% 0 0.0% Function: ~<anonymous> /Users/tmcw/src/turf-perf/index.js:1
3688 95.4% 0 0.0% LazyCompile: ~module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:4
3688 95.4% 0 0.0% LazyCompile: ~forEach native array.js:1087
3661 94.7% 2 0.1% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:6
3634 94.0% 194 5.0% LazyCompile: *forEach native array.js:1087
2866 74.2% 123 3.2% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:7
2743 71.0% 2575 66.6% LazyCompile: *module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/node_modules/turf-inside/index.js:5
167 4.3% 167 4.3% Stub: CompareStub_EQ
501 13.0% 67 1.7% LazyCompile: IN native runtime.js:354
311 8.0% 311 8.0% /usr/local/bin/node
48 1.2% 48 1.2% Stub: CEntryStub
41 1.1% 41 1.1% /usr/lib/system/libsystem_platform.dylib
24 0.6% 24 0.6% /usr/lib/system/libsystem_pthread.dylib
9 0.2% 0 0.0% LazyCompile: *module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/node_modules/turf-inside/index.js:5
9 0.2% 9 0.2% /usr/lib/system/libsystem_pthread.dylib
67 1.7% 67 1.7% Builtin: A builtin from the snapshot
4 0.1% 4 0.1% Stub: CEntryStub
24 0.6% 24 0.6% Builtin: A builtin from the snapshot
23 0.6% 0 0.0% LazyCompile: ~<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:6
18 0.5% 3 0.1% LazyCompile: *forEach native array.js:1087
11 0.3% 1 0.0% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:7
9 0.2% 8 0.2% LazyCompile: *module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/node_modules/turf-inside/index.js:5
4 0.1% 1 0.0% LazyCompile: IN native runtime.js:354
5 0.1% 1 0.0% LazyCompile: ~forEach native array.js:1087
10 0.3% 0 0.0% LazyCompile: ~require module.js:379
10 0.3% 0 0.0% LazyCompile: ~Module.require module.js:361
10 0.3% 0 0.0% LazyCompile: Module._load module.js:275
7 0.2% 0 0.0% LazyCompile: ~Module.load module.js:346
4 0.1% 0 0.0% LazyCompile: ~Module._extensions..js module.js:472
4 0.1% 0 0.0% LazyCompile: ~Module._compile module.js:374
7 0.2% 0 0.0% LazyCompile: ~<anonymous> node.js:204
7 0.2% 0 0.0% LazyCompile: ~NativeModule.require node.js:870
7 0.2% 0 0.0% LazyCompile: ~NativeModule.compile node.js:915
7 0.2% 0 0.0% Function: ~<anonymous> console.js:1
6 0.2% 0 0.0% LazyCompile: ~<anonymous> node.js:638
5 0.1% 0 0.0% LazyCompile: ~createWritableStdioStream node.js:573
4 0.1% 0 0.0% LazyCompile: ~NativeModule.require node.js:870
4 0.1% 0 0.0% LazyCompile: ~NativeModule.compile node.js:915
4 0.1% 0 0.0% Function: ~<anonymous> tty.js:1
4 0.1% 0 0.0% LazyCompile: ~NativeModule.require node.js:870
4 0.1% 0 0.0% LazyCompile: ~NativeModule.compile node.js:915
7 0.2% 0 0.0% LazyCompile: *hexgrid /Users/tmcw/src/turf-perf/node_modules/turf-hex/index.js:42
7 0.2% 6 0.2% LazyCompile: *hexagon /Users/tmcw/src/turf-perf/node_modules/turf-hex/index.js:16
6 0.2% 0 0.0% LazyCompile: ~Module._resolveFilename module.js:323
5 0.1% 0 0.0% LazyCompile: ~Module._findPath module.js:160
5 0.1% 0 0.0% LazyCompile: ~tryFile module.js:138
4 0.1% 0 0.0% LazyCompile: ~NativeModule.require node.js:870
4 0.1% 0 0.0% LazyCompile: ~NativeModule.compile node.js:915
4 0.1% 0 0.0% LazyCompile: ~startup.globalVariables node.js:160
4 0.1% 0 0.0% LazyCompile: ~NativeModule.require node.js:870
91 2.4% 91 2.4% /usr/local/bin/node
11 0.3% 11 0.3% Builtin: A builtin from the snapshot
8 0.2% 8 0.2% LazyCompile: *module.exports /Users/tmcw/src/turf-perf/node_modules/turf-within/node_modules/turf-inside/index.js:5
6 0.2% 6 0.2% /usr/lib/system/libsystem_platform.dylib
5 0.1% 5 0.1% LazyCompile: IN native runtime.js:354
5 0.1% 5 0.1% LazyCompile: *<anonymous> /Users/tmcw/src/turf-perf/node_modules/turf-within/index.js:7
4 0.1% 4 0.1% Stub: CEntryStub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment