Created
April 25, 2016 04:51
-
-
Save tab58/84174d1123629bc61b9a6859939bfce6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tims-mbp:summation-algorithms Tim$ node --trace-opt --trace-deopt --allow-natives-syntax --code-comments trace.js | |
[deoptimize global object @ 0x1544000106e9] | |
[marking 0x1544000b40c9 <JS Function $Array.configurable_ (SharedFunctionInfo 0x15440001bd81)> for recompilation, reason: small function, ICs with typeinfo: 1/1 (100%), generic ICs: 0/1 (0%)] | |
[optimizing 0x1544000b40c9 <JS Function $Array.configurable_ (SharedFunctionInfo 0x15440001bd81)> - took 0.052, 0.048, 0.044 ms] | |
[marking 0x1544000b3ff1 <JS Function (SharedFunctionInfo 0x15440001c171)> for recompilation, reason: small function, ICs with typeinfo: 2/2 (100%), generic ICs: 0/2 (0%)] | |
[optimizing 0x1544000b3ff1 <JS Function (SharedFunctionInfo 0x15440001c171)> - took 0.021, 0.046, 0.044 ms] | |
[marking 0x15440001cd81 <JS Function PropertyDescriptor (SharedFunctionInfo 0x154400018631)> for recompilation, reason: small function, ICs with typeinfo: 12/12 (100%), generic ICs: 0/12 (0%)] | |
[optimizing 0x15440001cd81 <JS Function PropertyDescriptor (SharedFunctionInfo 0x154400018631)> - took 0.062, 0.071, 0.056 ms] | |
[marking 0x396f0f04fb09 <JS Function tryFile (SharedFunctionInfo 0x1544000e3b81)> for recompilation, reason: small function, ICs with typeinfo: 8/8 (100%), generic ICs: 0/8 (0%)] | |
[optimizing 0x396f0f04fb09 <JS Function tryFile (SharedFunctionInfo 0x1544000e3b81)> - took 0.108, 0.112, 0.076 ms] | |
[marking 0x15440001c861 <JS Function hasOwnProperty (SharedFunctionInfo 0x154400017981)> for recompilation, reason: small function, ICs with typeinfo: 3/10 (30%), generic ICs: 0/10 (0%)] | |
[optimizing 0x15440001c861 <JS Function hasOwnProperty (SharedFunctionInfo 0x154400017981)> - took 0.034, 0.099, 0.076 ms] | |
[marking 0x1544000b4039 <JS Function $Array.set_ (SharedFunctionInfo 0x15440001c0e1)> for recompilation, reason: small function, ICs with typeinfo: 1/1 (100%), generic ICs: 0/1 (0%)] | |
[optimizing 0x1544000b4039 <JS Function $Array.set_ (SharedFunctionInfo 0x15440001c0e1)> - took 0.006, 0.030, 0.024 ms] | |
[marking 0x154400015e21 <JS Function ToUint32 (SharedFunctionInfo 0x154400014931)> for recompilation, reason: small function, ICs with typeinfo: 1/3 (33%), generic ICs: 0/3 (0%)] | |
[optimizing 0x154400015e21 <JS Function ToUint32 (SharedFunctionInfo 0x154400014931)> - took 0.023, 0.056, 0.027 ms] | |
[marking 0x1544000e31a9 <JS Function posix.dirname (SharedFunctionInfo 0x1544000e24d9)> for recompilation, reason: small function, ICs with typeinfo: 11/11 (100%), generic ICs: 0/11 (0%)] | |
[marking 0x15440002b5d9 <JS Function random (SharedFunctionInfo 0x154400029f29)> for recompilation, reason: small function, ICs with typeinfo: 31/31 (100%), generic ICs: 0/31 (0%)] | |
[optimizing 0x15440002b5d9 <JS Function random (SharedFunctionInfo 0x154400029f29)> - took 0.079, 0.137, 0.071 ms] | |
[marking 0x396f0f0a37d1 <JS Function (SharedFunctionInfo 0xf916351d941)> for recompilation, reason: small function, ICs with typeinfo: 9/16 (56%), generic ICs: 0/16 (0%)] | |
[optimizing 0x396f0f0a37d1 <JS Function (SharedFunctionInfo 0xf916351d941)> - took 0.278, 0.454, 0.169 ms] | |
[disabled optimization for 0xf91635272a9 <SharedFunctionInfo>, reason: eval] | |
[disabled optimization for 0xf9163528109 <SharedFunctionInfo>, reason: eval] | |
[disabled optimization for 0xf916352c041 <SharedFunctionInfo>, reason: eval] | |
[deoptimizing (DEOPT soft): begin 0x396f0f0a37d1 (opt #8) @29, FP to SP delta: 136] | |
;;; deoptimize: Insufficient type feedback for generic named access | |
translating => node=135, height=64 | |
0x7fff5fbff4f0: [top + 136] <- 0x396f0f09c9e9 ; [sp + 0] 0x396f0f09c9e9 <an Object with map 0xdf70930d581> | |
0x7fff5fbff4e8: [top + 128] <- 0x154400004121 <undefined> ; literal | |
0x7fff5fbff4e0: [top + 120] <- 0x154400004121 <undefined> ; literal | |
0x7fff5fbff4d8: [top + 112] <- 0x154400004121 <undefined> ; literal | |
0x7fff5fbff4d0: [top + 104] <- 0x154400004121 <undefined> ; literal | |
0x7fff5fbff4c8: [top + 96] <- 0x154400004121 <undefined> ; literal | |
0x7fff5fbff4c0: [top + 88] <- 0x319880124ac6 ; caller's pc | |
0x7fff5fbff4b8: [top + 80] <- 0x7fff5fbff520 ; caller's fp | |
0x7fff5fbff4b0: [top + 72] <- 0x15440006f679; context | |
0x7fff5fbff4a8: [top + 64] <- 0x396f0f0a37d1; function | |
0x7fff5fbff4a0: [top + 56] <- 0x154400004121 <undefined> ; literal | |
0x7fff5fbff498: [top + 48] <- 0x396f0f1050f9 ; [sp + 16] 0x396f0f1050f9 <JS Function sumPairwiseBlock1 (SharedFunctionInfo 0xf9163522809)> | |
0x7fff5fbff490: [top + 40] <- 0x154400004121 <undefined> ; literal | |
0x7fff5fbff488: [top + 32] <- 0x154400004121 <undefined> ; literal | |
0x7fff5fbff480: [top + 24] <- 0x154400004121 <undefined> ; literal | |
0x7fff5fbff478: [top + 16] <- 0x154400004121 <undefined> ; literal | |
0x7fff5fbff470: [top + 8] <- 0x154400004121 <undefined> ; literal | |
0x7fff5fbff468: [top + 0] <- 0x396f0f1819f1 ; rax 0x396f0f1819f1 <a View1dfloat64 with map 0x2fe392d0b9f1> | |
[deoptimizing (soft): end 0x396f0f0a37d1 @29 => node=135, pc=0x3198801a827f, state=TOS_REG, alignment=no padding, took 0.222 ms] | |
[removing optimized code for: ] | |
[evicting entry from optimizing code map (notify deoptimized) for 0xf916351d941 <SharedFunctionInfo> (osr ast id 83)] | |
[marking 0x396f0f1050f9 <JS Function sumPairwiseBlock1 (SharedFunctionInfo 0xf9163522809)> for recompilation, reason: hot and stable, ICs with typeinfo: 17/24 (70%), generic ICs: 0/24 (0%)] | |
[optimizing 0x396f0e00f111 <JS Function sumPairwiseBlock1 (SharedFunctionInfo 0xf9163522809)> - took 0.084, 0.333, 0.144 ms] | |
[deoptimizing (DEOPT soft): begin 0x396f0e00f111 sumPairwiseBlock1 (opt #9) @24, FP to SP delta: 144] | |
;;; deoptimize: Insufficient type feedback for keyed load | |
translating sumPairwiseBlock1 => node=132, height=40 | |
0x7fff5fbff428: [top + 104] <- 0x154400004121 ; r14 0x154400004121 <undefined> | |
0x7fff5fbff420: [top + 96] <- 0x396f0e00fb29 ; [sp + 32] 0x396f0e00fb29 <a Float64Array with map 0xdf709310239> | |
0x7fff5fbff418: [top + 88] <- 1000000 ; [sp + 0] (smi) | |
0x7fff5fbff410: [top + 80] <- 1000000 ; r8 (smi) | |
0x7fff5fbff408: [top + 72] <- 1 ; [sp + 40] (smi) | |
0x7fff5fbff400: [top + 64] <- 0x31988011e8d5 ; caller's pc | |
0x7fff5fbff3f8: [top + 56] <- 0x7fff5fbff448 ; caller's fp | |
0x7fff5fbff3f0: [top + 48] <- 0x396f0e00f0d9; context | |
0x7fff5fbff3e8: [top + 40] <- 0x396f0e00f111; function | |
0x7fff5fbff3e0: [top + 32] <- 0x154400004121 <undefined> ; literal | |
0x7fff5fbff3d8: [top + 24] <- 0x154400004121 <undefined> ; literal | |
0x7fff5fbff3d0: [top + 16] <- 0x700000000 ; [sp + 16] 7 | |
0x7fff5fbff3c8: [top + 8] <- 0x396f0e012e49 ; [sp + 24] 0x396f0e012e49 <JS Array[20]> | |
0x7fff5fbff3c0: [top + 0] <- 0x154400004121 <undefined> ; literal | |
[deoptimizing (soft): end 0x396f0e00f111 sumPairwiseBlock1 @24 => node=132, pc=0x3198801cacbf, state=NO_REGISTERS, alignment=no padding, took 0.056 ms] | |
[removing optimized code for: sumPairwiseBlock1] | |
[evicting entry from optimizing code map (notify deoptimized) for 0xf9163522809 <SharedFunctionInfo sumPairwiseBlock1> (osr ast id 133)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var ndarray = require('ndarray'); | |
var block1PairwiseSum = require('../src/block-1-pairwise'); | |
var n = 1000000; | |
var data = new Float64Array(n); | |
for (var i = 0; i < n; i++) { | |
data[i] = Math.random() * n; | |
} | |
var A = ndarray(data); | |
var computed = block1PairwiseSum(A.data); | |
console.log(computed); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment