Created
May 28, 2013 20:31
-
-
Save mraleph/5665873 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
∮ node --version [master@fb796] | |
v0.10.8 | |
∮ node -e "console.log(process.versions.v8)" [master@fb796] | |
3.14.5.9 | |
∮ node experiment.js [master@fb796] | |
Running experiment with dimensions = 16 x 16 x 16 | |
Proposal #1 array of native arrays Total Init = 1ms Execution = 32ms | |
Running experiment with dimensions = 64 x 64 x 64 | |
Proposal #1 array of native arrays Total Init = 5ms Execution = 1485ms | |
Running experiment with dimensions = 512 x 512 x 4 | |
Proposal #1 array of native arrays Total Init = 105ms Execution = 6140ms | |
Running experiment with dimensions = 512 x 4 x 512 | |
Proposal #1 array of native arrays Total Init = 20ms Execution = 5698ms | |
Running experiment with dimensions = 4 x 512 x 512 | |
Proposal #1 array of native arrays Total Init = 14ms Execution = 5750ms | |
Running experiment with dimensions = 2 x 2 x 2048 | |
Proposal #1 array of native arrays Total Init = 0ms Execution = 45ms | |
Running experiment with dimensions = 2048 x 2 x 2 | |
Proposal #1 array of native arrays Total Init = 3ms Execution = 54ms | |
∮ git diff multi_native.js [master@fb796] | |
diff --git a/multi_native.js b/multi_native.js | |
index e05bf64..ffb030b 100644 | |
--- a/multi_native.js | |
+++ b/multi_native.js | |
@@ -9,6 +9,8 @@ function initArray(nx, ny, nz) { | |
result[i] = ri; | |
for(var j=ny-1; j>=0; --j) { | |
ri[j] = line.slice(0); | |
+ ri[j][0] = 0.1; | |
+ ri[j][0] = 0.0; | |
} | |
} | |
return result; | |
@@ -29,4 +31,4 @@ function benchmark(A, B, nx, ny, nz, num_iter) { | |
exports.benchmark = benchmark; | |
exports.initArray = initArray; | |
-exports.prop_name = "array of native arrays"; | |
\ No newline at end of file | |
+exports.prop_name = "array of native arrays"; | |
∮ node experiment.js [master@fb796] | |
Running experiment with dimensions = 16 x 16 x 16 | |
Proposal #1 array of native arrays Total Init = 1ms Execution = 9ms | |
Running experiment with dimensions = 64 x 64 x 64 | |
Proposal #1 array of native arrays Total Init = 6ms Execution = 320ms | |
Running experiment with dimensions = 512 x 512 x 4 | |
Proposal #1 array of native arrays Total Init = 109ms Execution = 1583ms | |
Running experiment with dimensions = 512 x 4 x 512 | |
Proposal #1 array of native arrays Total Init = 12ms Execution = 1044ms | |
Running experiment with dimensions = 4 x 512 x 512 | |
Proposal #1 array of native arrays Total Init = 12ms Execution = 1040ms | |
Running experiment with dimensions = 2 x 2 x 2048 | |
Proposal #1 array of native arrays Total Init = 1ms Execution = 8ms | |
Running experiment with dimensions = 2048 x 2 x 2 | |
Proposal #1 array of native arrays Total Init = 1ms Execution = 16ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment