Skip to content

Commit

Permalink
Merge pull request #5 from johntoopublic/master
Browse files Browse the repository at this point in the history
Quick fix for README links, addition of results.
  • Loading branch information
majimboo committed Aug 20, 2014
2 parents bceb79d + 1084010 commit b510651
Show file tree
Hide file tree
Showing 24 changed files with 293 additions and 45 deletions.
42 changes: 21 additions & 21 deletions README.md
Expand Up @@ -51,24 +51,24 @@ Results

You can find the result sets [here](https://github.com/majimboo/node_benchmarks/tree/master/results). I recommend you fork and send a pull requests to add your results to this list.

- [array_filter](https:/github.com/majimboo/node-benchmarks/tree/master/results/array_filter.md)
- [array_loop](https:/github.com/majimboo/node-benchmarks/tree/master/results/array_loop.md)
- [array_map](https:/github.com/majimboo/node-benchmarks/tree/master/results/array_map.md)
- [array_prepend](https:/github.com/majimboo/node-benchmarks/tree/master/results/array_prepend.md)
- [bluebird_vs_q](https:/github.com/majimboo/node-benchmarks/tree/master/results/bluebird_vs_q.md)
- [buf_read](https:/github.com/majimboo/node-benchmarks/tree/master/results/buf_read.md)
- [buf_write](https:/github.com/majimboo/node-benchmarks/tree/master/results/buf_write.md)
- [conditional](https:/github.com/majimboo/node-benchmarks/tree/master/results/conditional.md)
- [delete](https:/github.com/majimboo/node-benchmarks/tree/master/results/delete.md)
- [delete_last_item](https:/github.com/majimboo/node-benchmarks/tree/master/results/delete_last_item.md)
- [duplicate](https:/github.com/majimboo/node-benchmarks/tree/master/results/duplicate.md)
- [function_call](https:/github.com/majimboo/node-benchmarks/tree/master/results/function_call.md)
- [inc_int](https:/github.com/majimboo/node-benchmarks/tree/master/results/inc_int.md)
- [manip_recv_buf](https:/github.com/majimboo/node-benchmarks/tree/master/results/manip_recv_buf.md)
- [object_loop](https:/github.com/majimboo/node-benchmarks/tree/master/results/object_loop.md)
- [proto_vs_literal](https:/github.com/majimboo/node-benchmarks/tree/master/results/proto_vs_literal.md)
- [round_num](https:/github.com/majimboo/node-benchmarks/tree/master/results/round_num.md)
- [send_buf](https:/github.com/majimboo/node-benchmarks/tree/master/results/send_buf.md)
- [str_to_int](https:/github.com/majimboo/node-benchmarks/tree/master/results/str_to_int.md)
- [string_search](https:/github.com/majimboo/node-benchmarks/tree/master/results/string_search.md)
- [type_check](https:/github.com/majimboo/node-benchmarks/tree/master/results/type_check.md)
- [array_filter](https://github.com/majimboo/node-benchmarks/tree/master/results/array_filter.md)
- [array_loop](https://github.com/majimboo/node-benchmarks/tree/master/results/array_loop.md)
- [array_map](https://github.com/majimboo/node-benchmarks/tree/master/results/array_map.md)
- [array_prepend](https://github.com/majimboo/node-benchmarks/tree/master/results/array_prepend.md)
- [bluebird_vs_q](https://github.com/majimboo/node-benchmarks/tree/master/results/bluebird_vs_q.md)
- [buf_read](https://github.com/majimboo/node-benchmarks/tree/master/results/buf_read.md)
- [buf_write](https://github.com/majimboo/node-benchmarks/tree/master/results/buf_write.md)
- [conditional](https://github.com/majimboo/node-benchmarks/tree/master/results/conditional.md)
- [delete](https://github.com/majimboo/node-benchmarks/tree/master/results/delete.md)
- [delete_last_item](https://github.com/majimboo/node-benchmarks/tree/master/results/delete_last_item.md)
- [duplicate](https://github.com/majimboo/node-benchmarks/tree/master/results/duplicate.md)
- [function_call](https://github.com/majimboo/node-benchmarks/tree/master/results/function_call.md)
- [inc_int](https://github.com/majimboo/node-benchmarks/tree/master/results/inc_int.md)
- [manip_recv_buf](https://github.com/majimboo/node-benchmarks/tree/master/results/manip_recv_buf.md)
- [object_loop](https://github.com/majimboo/node-benchmarks/tree/master/results/object_loop.md)
- [proto_vs_literal](https://github.com/majimboo/node-benchmarks/tree/master/results/proto_vs_literal.md)
- [round_num](https://github.com/majimboo/node-benchmarks/tree/master/results/round_num.md)
- [send_buf](https://github.com/majimboo/node-benchmarks/tree/master/results/send_buf.md)
- [str_to_int](https://github.com/majimboo/node-benchmarks/tree/master/results/str_to_int.md)
- [string_search](https://github.com/majimboo/node-benchmarks/tree/master/results/string_search.md)
- [type_check](https://github.com/majimboo/node-benchmarks/tree/master/results/type_check.md)
5 changes: 2 additions & 3 deletions bin/node-benchmarks
Expand Up @@ -16,7 +16,7 @@ program
.parse(process.argv);

// var resultsPath = path.resolve(path.join(__dirname, '..', 'results'));
var resultsPath = path.join(process.cwd(), program.path) || path.join(process.cwd(), 'results');
var resultsPath = program.path ? path.join(process.cwd(), program.path) : path.join(process.cwd(), 'results');
if(!fs.existsSync(resultsPath)){
fs.mkdirSync(resultsPath);
}
Expand All @@ -36,9 +36,8 @@ glob(path.join(scriptsPath, '*.js'), function (err, files) {
files.forEach(function (file) {
var docFile = path.basename(file, '.js') + '.md';
var resultPath = path.join(resultsPath, docFile);
var githubResultPath = path.join('https://github.com/majimboo/node-benchmarks/tree/master/results', docFile);

README += '- [' + path.basename(file, '.js') + '](' + githubResultPath + ')\n';
README += '- [' + path.basename(file, '.js') + '](' + docFile + ')\n';

spawn(process.execPath, [file], function(err, stdout, stderr) {
var header = os.type() + ' ' + os.arch() + ' - ' + os.release() + '\n';
Expand Down
42 changes: 21 additions & 21 deletions results/README.md
@@ -1,21 +1,21 @@
- [array_filter](https:/github.com/majimboo/node-benchmarks/tree/master/results/array_filter.md)
- [array_loop](https:/github.com/majimboo/node-benchmarks/tree/master/results/array_loop.md)
- [array_map](https:/github.com/majimboo/node-benchmarks/tree/master/results/array_map.md)
- [array_prepend](https:/github.com/majimboo/node-benchmarks/tree/master/results/array_prepend.md)
- [bluebird_vs_q](https:/github.com/majimboo/node-benchmarks/tree/master/results/bluebird_vs_q.md)
- [buf_read](https:/github.com/majimboo/node-benchmarks/tree/master/results/buf_read.md)
- [buf_write](https:/github.com/majimboo/node-benchmarks/tree/master/results/buf_write.md)
- [conditional](https:/github.com/majimboo/node-benchmarks/tree/master/results/conditional.md)
- [delete](https:/github.com/majimboo/node-benchmarks/tree/master/results/delete.md)
- [delete_last_item](https:/github.com/majimboo/node-benchmarks/tree/master/results/delete_last_item.md)
- [duplicate](https:/github.com/majimboo/node-benchmarks/tree/master/results/duplicate.md)
- [function_call](https:/github.com/majimboo/node-benchmarks/tree/master/results/function_call.md)
- [inc_int](https:/github.com/majimboo/node-benchmarks/tree/master/results/inc_int.md)
- [manip_recv_buf](https:/github.com/majimboo/node-benchmarks/tree/master/results/manip_recv_buf.md)
- [object_loop](https:/github.com/majimboo/node-benchmarks/tree/master/results/object_loop.md)
- [proto_vs_literal](https:/github.com/majimboo/node-benchmarks/tree/master/results/proto_vs_literal.md)
- [round_num](https:/github.com/majimboo/node-benchmarks/tree/master/results/round_num.md)
- [send_buf](https:/github.com/majimboo/node-benchmarks/tree/master/results/send_buf.md)
- [str_to_int](https:/github.com/majimboo/node-benchmarks/tree/master/results/str_to_int.md)
- [string_search](https:/github.com/majimboo/node-benchmarks/tree/master/results/string_search.md)
- [type_check](https:/github.com/majimboo/node-benchmarks/tree/master/results/type_check.md)
- [array_filter](array_filter.md)
- [array_loop](array_loop.md)
- [array_map](array_map.md)
- [array_prepend](array_prepend.md)
- [bluebird_vs_q](bluebird_vs_q.md)
- [buf_read](buf_read.md)
- [buf_write](buf_write.md)
- [conditional](conditional.md)
- [delete](delete.md)
- [delete_last_item](delete_last_item.md)
- [duplicate](duplicate.md)
- [function_call](function_call.md)
- [inc_int](inc_int.md)
- [manip_recv_buf](manip_recv_buf.md)
- [object_loop](object_loop.md)
- [proto_vs_literal](proto_vs_literal.md)
- [round_num](round_num.md)
- [send_buf](send_buf.md)
- [str_to_int](str_to_int.md)
- [string_search](string_search.md)
- [type_check](type_check.md)
12 changes: 12 additions & 0 deletions results/array_filter.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is lodash#filter
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>Array#filter</b></td><td>7,377 ops/sec ±5.75% (40 runs sampled)</td></tr><tr><td><b>underscore#filter</b></td><td>7,070 ops/sec ±9.23% (26 runs sampled)</td></tr><tr><td><b>lodash#filter</b></td><td>25,726 ops/sec ±6.26% (66 runs sampled)</td></tr></table>

> Notes:
> - Fastest is lodash#filter
12 changes: 12 additions & 0 deletions results/array_loop.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is For loop cached,For loop basic
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>For loop basic</b></td><td>14,909 ops/sec ±4.53% (49 runs sampled)</td></tr><tr><td><b>While loop basic</b></td><td>15,016 ops/sec ±5.94% (57 runs sampled)</td></tr><tr><td><b>For loop cached</b></td><td>24,511 ops/sec ±3.31% (67 runs sampled)</td></tr><tr><td><b>For loop i--</b></td><td>3,958 ops/sec ±4.99% (23 runs sampled)</td></tr><tr><td><b>Do-while loop i--</b></td><td>12,904 ops/sec ±3.35% (51 runs sampled)</td></tr><tr><td><b>Do-while loop --i</b></td><td>8,910 ops/sec ±7.39% (40 runs sampled)</td></tr><tr><td><b>For..in loop</b></td><td>1,234 ops/sec ±1.09% (23 runs sampled)</td></tr><tr><td><b>Array#forEach</b></td><td>3,185 ops/sec ±9.58% (45 runs sampled)</td></tr><tr><td><b>underscore#each</b></td><td>3,696 ops/sec ±0.95% (35 runs sampled)</td></tr><tr><td><b>lodash#each</b></td><td>16,138 ops/sec ±5.58% (85 runs sampled)</td></tr><tr><td><b>shift valid</b></td><td>8,857 ops/sec ±2.15% (89 runs sampled)</td></tr><tr><td><b>pop valid</b></td><td>39,073 ops/sec ±1.22% (86 runs sampled)</td></tr></table>

> Notes:
> - Fastest is pop valid
12 changes: 12 additions & 0 deletions results/array_map.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is lodash#map,for loop (with function call),CoffeeScript comprehension
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>CoffeeScript comprehension</b></td><td>2,773 ops/sec ±2.50% (11 runs sampled)</td></tr><tr><td><b>for loop (with function call)</b></td><td>2,759 ops/sec ±14.74% (13 runs sampled)</td></tr><tr><td><b>Array#map</b></td><td>844 ops/sec ±7.22% (13 runs sampled)</td></tr><tr><td><b>underscore#map</b></td><td>1,057 ops/sec ±6.97% (13 runs sampled)</td></tr><tr><td><b>lodash#map</b></td><td>4,257 ops/sec ±4.98% (20 runs sampled)</td></tr></table>

> Notes:
> - Fastest is lodash#map
12 changes: 12 additions & 0 deletions results/array_prepend.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is unshift,unshift no mutate
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>unshift</b></td><td>235,869 ops/sec ±1.32% (10 runs sampled)</td></tr><tr><td><b>prepend fn</b></td><td>100,669 ops/sec ±18.93% (10 runs sampled)</td></tr><tr><td><b>unshift no mutate</b></td><td>202,254 ops/sec ±7.51% (60 runs sampled)</td></tr></table>

> Notes:
> - Fastest is unshift,unshift no mutate
9 changes: 9 additions & 0 deletions results/bluebird_vs_q.md
Expand Up @@ -10,3 +10,12 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is bluebird
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table>

12 changes: 12 additions & 0 deletions results/buf_read.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is plainArray noAssert
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>buf.read</b></td><td>40,806 ops/sec ±172.32% (8 runs sampled)</td></tr><tr><td><b>buf.myRead</b></td><td>55,432 ops/sec ±160.66% (9 runs sampled)</td></tr><tr><td><b>buf.read noAssert</b></td><td>222,099 ops/sec ±103.01% (12 runs sampled)</td></tr><tr><td><b>buf.myRead noAssert</b></td><td>90,740 ops/sec ±178.24% (12 runs sampled)</td></tr><tr><td><b>plainArray</b></td><td>688,947 ops/sec ±7.32% (19 runs sampled)</td></tr><tr><td><b>plainArray noAssert</b></td><td>1,258,398 ops/sec ±1.39% (59 runs sampled)</td></tr><tr><td><b>ArrayBuffer DataView</b></td><td>283,569 ops/sec ±7.99% (42 runs sampled)</td></tr></table>

> Notes:
> - Fastest is plainArray noAssert
12 changes: 12 additions & 0 deletions results/buf_write.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is buf.myWrite noAssert
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>buf.write</b></td><td>404,689 ops/sec ±0.67% (8 runs sampled)</td></tr><tr><td><b>buf.myWrite</b></td><td>194,301 ops/sec ±133.23% (14 runs sampled)</td></tr><tr><td><b>buf.write noAssert</b></td><td>1,290,790 ops/sec ±6.03% (12 runs sampled)</td></tr><tr><td><b>buf.myWrite noAssert</b></td><td>1,459,208 ops/sec ±11.17% (12 runs sampled)</td></tr></table>

> Notes:
> - Fastest is buf.myWrite noAssert
12 changes: 12 additions & 0 deletions results/conditional.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is if else
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>if else</b></td><td>1,096,334 ops/sec ±5.38% (59 runs sampled)</td></tr><tr><td><b>switch</b></td><td>468,797 ops/sec ±13.07% (60 runs sampled)</td></tr><tr><td><b>lookup table</b></td><td>1,234,662 ops/sec ±4.67% (25 runs sampled)</td></tr></table>

> Notes:
> - Fastest is lookup table
12 changes: 12 additions & 0 deletions results/delete.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is object subscript delete
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>splice</b></td><td>250,154 ops/sec ±4.91% (13 runs sampled)</td></tr><tr><td><b>object delete</b></td><td>292,275 ops/sec ±6.94% (55 runs sampled)</td></tr><tr><td><b>array delete</b></td><td>462,431 ops/sec ±6.56% (11 runs sampled)</td></tr><tr><td><b>object subscript delete</b></td><td>557,292 ops/sec ±3.74% (74 runs sampled)</td></tr></table>

> Notes:
> - Fastest is object subscript delete
12 changes: 12 additions & 0 deletions results/delete_last_item.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is array pop
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>splice</b></td><td>17,346 ops/sec ±5.45% (58 runs sampled)</td></tr><tr><td><b>splice -</b></td><td>17,687 ops/sec ±6.99% (20 runs sampled)</td></tr><tr><td><b>splice cached</b></td><td>24,167 ops/sec ±3.49% (66 runs sampled)</td></tr><tr><td><b>array delete</b></td><td>26,477 ops/sec ±3.00% (26 runs sampled)</td></tr><tr><td><b>array pop</b></td><td>47,442 ops/sec ±4.31% (79 runs sampled)</td></tr></table>

> Notes:
> - Fastest is array pop
12 changes: 12 additions & 0 deletions results/duplicate.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is eliminateDuplicates
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>filterDuplicates</b></td><td>1,867 ops/sec ±5.24% (32 runs sampled)</td></tr><tr><td><b>eliminateDuplicates</b></td><td>3,368 ops/sec ±8.91% (19 runs sampled)</td></tr></table>

> Notes:
> - Fastest is eliminateDuplicates
12 changes: 12 additions & 0 deletions results/function_call.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is direct
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>apply</b></td><td>76,147 ops/sec ±4.05% (51 runs sampled)</td></tr><tr><td><b>call</b></td><td>477,766 ops/sec ±14.47% (62 runs sampled)</td></tr><tr><td><b>bind</b></td><td>21,315 ops/sec ±10.98% (35 runs sampled)</td></tr><tr><td><b>direct</b></td><td>1,051,219 ops/sec ±13.77% (16 runs sampled)</td></tr></table>

> Notes:
> - Fastest is direct
12 changes: 12 additions & 0 deletions results/inc_int.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is inc fn
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>i++</b></td><td>1,904,888 ops/sec ±3.56% (26 runs sampled)</td></tr><tr><td><b>++i</b></td><td>1,629,367 ops/sec ±6.85% (12 runs sampled)</td></tr><tr><td><b>i += 1</b></td><td>2,827,249 ops/sec ±8.75% (16 runs sampled)</td></tr><tr><td><b>inc fn</b></td><td>2,697,299 ops/sec ±3.37% (67 runs sampled)</td></tr></table>

> Notes:
> - Fastest is inc fn,i += 1
12 changes: 12 additions & 0 deletions results/manip_recv_buf.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is buffer,string+
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>buffer</b></td><td>3,843 ops/sec ±25.29% (38 runs sampled)</td></tr><tr><td><b>string+</b></td><td>3,115 ops/sec ±24.43% (15 runs sampled)</td></tr></table>

> Notes:
> - Fastest is buffer
12 changes: 12 additions & 0 deletions results/object_loop.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is for Object#keys.length
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>prop in Object</b></td><td>23,629 ops/sec ±3.41% (50 runs sampled)</td></tr><tr><td><b>forEach Object#keys</b></td><td>34,407 ops/sec ±13.37% (49 runs sampled)</td></tr><tr><td><b>for Object#keys.length</b></td><td>97,526 ops/sec ±4.26% (55 runs sampled)</td></tr></table>

> Notes:
> - Fastest is for Object#keys.length
12 changes: 12 additions & 0 deletions results/proto_vs_literal.md
Expand Up @@ -10,3 +10,15 @@ Darwin x64 - 13.3.0
> Notes:
> - Fastest is prototype
Linux x64 - 3.8.4-1-ARCH
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.30</td><td>519 MB</td><td>QEMU Virtual CPU version 1.0</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>prototype</b></td><td>687,862 ops/sec ±1.81% (14 runs sampled)</td></tr><tr><td><b>literal</b></td><td>218,201 ops/sec ±9.66% (62 runs sampled)</td></tr><tr><td><b>prototype 1M</b></td><td>0.45 ops/sec ±46.58% (6 runs sampled)</td></tr><tr><td><b>literal 1M</b></td><td>0.62 ops/sec ±13.72% (6 runs sampled)</td></tr></table>

> Notes:
> - Fastest is prototype

0 comments on commit b510651

Please sign in to comment.