Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Created May 26, 2015 15:47
Docker Windows Shared Folder Benchmark results
[simple.js]
var i, a, b, c, max;
max = 1000000000;
var d = Date.now();
for (i = 0; i < max; i++) {
a = 1234 + 5678 + i;
b = 1234 * 5678 + i;
c = 1234 / 2 + i;
}
console.log('NodeJS on docker :-) Beanchmark Result: ');
console.log((Date.now() - d) + ' ms to run.');
[Benchmark Results]
On windows:
$ node simple.js
NodeJS on docker :-) Beanchmark Result:
1121 ms to run.
On Linux/Docker:
$ root@480ad96da98a:/home/docker/shared/shared# js simple.js
NodeJS on docker :-) Beanchmark Result:
2352 ms to run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment