Skip to content

Commit

Permalink
fixed conflicts from merge #6
Browse files Browse the repository at this point in the history
  • Loading branch information
majimboo committed Aug 20, 2014
1 parent 0a733a2 commit 2e01487
Show file tree
Hide file tree
Showing 21 changed files with 261 additions and 0 deletions.
10 changes: 10 additions & 0 deletions results/array_filter.md
Expand Up @@ -31,6 +31,16 @@ Darwin x64 - 13.2.0

<table><tr><td><b>Array#filter</b></td><td>82,158 ops/sec ±7.58% (31 runs sampled)</td></tr><tr><td><b>underscore#filter</b></td><td>81,648 ops/sec ±8.17% (37 runs sampled)</td></tr><tr><td><b>lodash#filter</b></td><td>402,548 ops/sec ±6.78% (55 runs sampled)</td></tr></table>


Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>Array#filter</b></td><td>59,032 ops/sec ±16.83% (25 runs sampled)</td></tr><tr><td><b>underscore#filter</b></td><td>60,934 ops/sec ±18.15% (31 runs sampled)</td></tr><tr><td><b>lodash#filter</b></td><td>152,863 ops/sec ±12.80% (26 runs sampled)</td></tr></table>

> Notes:
> - Fastest is lodash#filter
14 changes: 14 additions & 0 deletions results/array_loop.md
Expand Up @@ -22,6 +22,7 @@ Linux x64 - 3.8.4-1-ARCH
> Notes:
> - Fastest is pop valid

Darwin x64 - 13.2.0
-----

Expand All @@ -34,3 +35,16 @@ Darwin x64 - 13.2.0
> Notes:
> - Fastest is Do-while loop i--,For loop cached

Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>For loop basic</b></td><td>185,947 ops/sec ±16.45% (32 runs sampled)</td></tr><tr><td><b>While loop basic</b></td><td>164,200 ops/sec ±15.83% (24 runs sampled)</td></tr><tr><td><b>For loop cached</b></td><td>218,918 ops/sec ±12.13% (37 runs sampled)</td></tr><tr><td><b>For loop i--</b></td><td>29,449 ops/sec ±10.82% (35 runs sampled)</td></tr><tr><td><b>Do-while loop i--</b></td><td>99,298 ops/sec ±10.20% (51 runs sampled)</td></tr><tr><td><b>Do-while loop --i</b></td><td>76,253 ops/sec ±4.43% (69 runs sampled)</td></tr><tr><td><b>For..in loop</b></td><td>8,295 ops/sec ±6.07% (62 runs sampled)</td></tr><tr><td><b>Array#forEach</b></td><td>24,476 ops/sec ±5.22% (81 runs sampled)</td></tr><tr><td><b>underscore#each</b></td><td>25,298 ops/sec ±2.72% (89 runs sampled)</td></tr><tr><td><b>lodash#each</b></td><td>62,495 ops/sec ±3.93% (82 runs sampled)</td></tr><tr><td><b>shift valid</b></td><td>24,220 ops/sec ±5.78% (87 runs sampled)</td></tr><tr><td><b>pop valid</b></td><td>113,093 ops/sec ±3.51% (82 runs sampled)</td></tr></table>

> Notes:
> - Fastest is For loop cached,For loop basic
14 changes: 14 additions & 0 deletions results/array_map.md
Expand Up @@ -22,6 +22,7 @@ Linux x64 - 3.8.4-1-ARCH
> Notes:
> - Fastest is lodash#map

Darwin x64 - 13.2.0
-----

Expand All @@ -34,3 +35,16 @@ Darwin x64 - 13.2.0
> Notes:
> - Fastest is lodash#map

Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>CoffeeScript comprehension</b></td><td>25,414 ops/sec ±18.40% (29 runs sampled)</td></tr><tr><td><b>for loop (with function call)</b></td><td>21,676 ops/sec ±13.46% (28 runs sampled)</td></tr><tr><td><b>Array#map</b></td><td>4,693 ops/sec ±12.94% (28 runs sampled)</td></tr><tr><td><b>underscore#map</b></td><td>6,770 ops/sec ±10.48% (37 runs sampled)</td></tr><tr><td><b>lodash#map</b></td><td>29,264 ops/sec ±8.86% (53 runs sampled)</td></tr></table>

> Notes:
> - Fastest is lodash#map,CoffeeScript comprehension
14 changes: 14 additions & 0 deletions results/array_prepend.md
Expand Up @@ -22,6 +22,7 @@ Linux x64 - 3.8.4-1-ARCH
> Notes:
> - Fastest is unshift,unshift no mutate

Darwin x64 - 13.2.0
-----

Expand All @@ -34,3 +35,16 @@ Darwin x64 - 13.2.0
> Notes:
> - Fastest is unshift,prepend fn

Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>unshift</b></td><td>1,671,869 ops/sec ±17.60% (26 runs sampled)</td></tr><tr><td><b>prepend fn</b></td><td>679,464 ops/sec ±16.11% (28 runs sampled)</td></tr><tr><td><b>unshift no mutate</b></td><td>1,178,501 ops/sec ±13.46% (32 runs sampled)</td></tr></table>

> Notes:
> - Fastest is unshift
11 changes: 11 additions & 0 deletions results/bluebird_vs_q.md
Expand Up @@ -19,6 +19,7 @@ Linux x64 - 3.8.4-1-ARCH

<table>


Darwin x64 - 13.2.0
-----

Expand All @@ -28,6 +29,16 @@ Darwin x64 - 13.2.0

<table><tr><td><b>bluebird</b></td><td>475,897 ops/sec ±13.80% (34 runs sampled)</td></tr><tr><td><b>q</b></td><td>15,712 ops/sec ±17.03% (21 runs sampled)</td></tr></table>


Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>bluebird</b></td><td>211,756 ops/sec ±17.14% (25 runs sampled)</td></tr><tr><td><b>q</b></td><td>19,951 ops/sec ±14.09% (27 runs sampled)</td></tr></table>

> Notes:
> - Fastest is bluebird
14 changes: 14 additions & 0 deletions results/buf_read.md
Expand Up @@ -22,6 +22,7 @@ Linux x64 - 3.8.4-1-ARCH
> Notes:
> - Fastest is plainArray noAssert

Darwin x64 - 13.2.0
-----

Expand All @@ -34,3 +35,16 @@ Darwin x64 - 13.2.0
> Notes:
> - Fastest is buf.read noAssert

Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>buf.read</b></td><td>866,876 ops/sec ±16.42% (27 runs sampled)</td></tr><tr><td><b>buf.myRead</b></td><td>1,148,220 ops/sec ±15.48% (25 runs sampled)</td></tr><tr><td><b>buf.read noAssert</b></td><td>1,695,149 ops/sec ±12.44% (28 runs sampled)</td></tr><tr><td><b>buf.myRead noAssert</b></td><td>3,645,886 ops/sec ±11.18% (31 runs sampled)</td></tr><tr><td><b>plainArray</b></td><td>4,041,972 ops/sec ±8.65% (43 runs sampled)</td></tr><tr><td><b>plainArray noAssert</b></td><td>10,485,913 ops/sec ±6.85% (68 runs sampled)</td></tr><tr><td><b>ArrayBuffer DataView</b></td><td>1,791,244 ops/sec ±5.09% (74 runs sampled)</td></tr></table>

> Notes:
> - Fastest is plainArray noAssert
14 changes: 14 additions & 0 deletions results/buf_write.md
Expand Up @@ -22,6 +22,7 @@ Linux x64 - 3.8.4-1-ARCH
> Notes:
> - Fastest is buf.myWrite noAssert

Darwin x64 - 13.2.0
-----

Expand All @@ -34,3 +35,16 @@ Darwin x64 - 13.2.0
> Notes:
> - Fastest is buf.write noAssert

Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>buf.write</b></td><td>2,836,134 ops/sec ±15.93% (26 runs sampled)</td></tr><tr><td><b>buf.myWrite</b></td><td>3,478,758 ops/sec ±16.18% (27 runs sampled)</td></tr><tr><td><b>buf.write noAssert</b></td><td>7,137,474 ops/sec ±15.01% (31 runs sampled)</td></tr><tr><td><b>buf.myWrite noAssert</b></td><td>11,312,602 ops/sec ±12.61% (43 runs sampled)</td></tr></table>

> Notes:
> - Fastest is buf.myWrite noAssert
14 changes: 14 additions & 0 deletions results/conditional.md
Expand Up @@ -22,6 +22,7 @@ Linux x64 - 3.8.4-1-ARCH
> Notes:
> - Fastest is lookup table

Darwin x64 - 13.2.0
-----

Expand All @@ -34,3 +35,16 @@ Darwin x64 - 13.2.0
> Notes:
> - Fastest is if else,switch

Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>if else</b></td><td>8,652,776 ops/sec ±15.31% (28 runs sampled)</td></tr><tr><td><b>switch</b></td><td>3,515,121 ops/sec ±13.77% (25 runs sampled)</td></tr><tr><td><b>lookup table</b></td><td>9,019,769 ops/sec ±15.23% (31 runs sampled)</td></tr></table>

> Notes:
> - Fastest is lookup table,if else
11 changes: 11 additions & 0 deletions results/delete.md
Expand Up @@ -22,6 +22,7 @@ Linux x64 - 3.8.4-1-ARCH
> Notes:
> - Fastest is object subscript delete

Darwin x64 - 13.2.0
-----

Expand All @@ -31,6 +32,16 @@ Darwin x64 - 13.2.0

<table><tr><td><b>splice</b></td><td>2,881,727 ops/sec ±9.45% (43 runs sampled)</td></tr><tr><td><b>object delete</b></td><td>2,525,539 ops/sec ±9.82% (36 runs sampled)</td></tr><tr><td><b>array delete</b></td><td>3,083,162 ops/sec ±7.69% (44 runs sampled)</td></tr><tr><td><b>object subscript delete</b></td><td>4,119,026 ops/sec ±5.04% (52 runs sampled)</td></tr></table>


Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>splice</b></td><td>1,961,789 ops/sec ±17.43% (26 runs sampled)</td></tr><tr><td><b>object delete</b></td><td>1,931,213 ops/sec ±15.84% (28 runs sampled)</td></tr><tr><td><b>array delete</b></td><td>2,525,143 ops/sec ±15.43% (28 runs sampled)</td></tr><tr><td><b>object subscript delete</b></td><td>3,100,854 ops/sec ±11.49% (36 runs sampled)</td></tr></table>

> Notes:
> - Fastest is object subscript delete
11 changes: 11 additions & 0 deletions results/delete_last_item.md
Expand Up @@ -22,6 +22,7 @@ Linux x64 - 3.8.4-1-ARCH
> Notes:
> - Fastest is array pop

Darwin x64 - 13.2.0
-----

Expand All @@ -31,6 +32,16 @@ Darwin x64 - 13.2.0

<table><tr><td><b>splice</b></td><td>80,600 ops/sec ±10.78% (40 runs sampled)</td></tr><tr><td><b>splice -</b></td><td>82,796 ops/sec ±12.42% (47 runs sampled)</td></tr><tr><td><b>splice cached</b></td><td>106,642 ops/sec ±6.49% (58 runs sampled)</td></tr><tr><td><b>array delete</b></td><td>120,528 ops/sec ±5.83% (63 runs sampled)</td></tr><tr><td><b>array pop</b></td><td>176,481 ops/sec ±3.16% (77 runs sampled)</td></tr></table>


Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>splice</b></td><td>124,216 ops/sec ±16.18% (25 runs sampled)</td></tr><tr><td><b>splice -</b></td><td>183,785 ops/sec ±14.39% (41 runs sampled)</td></tr><tr><td><b>splice cached</b></td><td>203,508 ops/sec ±13.10% (46 runs sampled)</td></tr><tr><td><b>array delete</b></td><td>215,110 ops/sec ±11.93% (48 runs sampled)</td></tr><tr><td><b>array pop</b></td><td>375,656 ops/sec ±7.79% (65 runs sampled)</td></tr></table>

> Notes:
> - Fastest is array pop
11 changes: 11 additions & 0 deletions results/duplicate.md
Expand Up @@ -22,6 +22,7 @@ Linux x64 - 3.8.4-1-ARCH
> Notes:
> - Fastest is eliminateDuplicates

Darwin x64 - 13.2.0
-----

Expand All @@ -31,6 +32,16 @@ Darwin x64 - 13.2.0

<table><tr><td><b>filterDuplicates</b></td><td>22,692 ops/sec ±9.06% (38 runs sampled)</td></tr><tr><td><b>eliminateDuplicates</b></td><td>27,891 ops/sec ±9.55% (37 runs sampled)</td></tr></table>


Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>filterDuplicates</b></td><td>16,624 ops/sec ±14.93% (26 runs sampled)</td></tr><tr><td><b>eliminateDuplicates</b></td><td>34,317 ops/sec ±16.97% (26 runs sampled)</td></tr></table>

> Notes:
> - Fastest is eliminateDuplicates
11 changes: 11 additions & 0 deletions results/function_call.md
Expand Up @@ -22,6 +22,7 @@ Linux x64 - 3.8.4-1-ARCH
> Notes:
> - Fastest is direct

Darwin x64 - 13.2.0
-----

Expand All @@ -31,6 +32,16 @@ Darwin x64 - 13.2.0

<table><tr><td><b>apply</b></td><td>113,828 ops/sec ±7.28% (32 runs sampled)</td></tr><tr><td><b>call</b></td><td>7,718,645 ops/sec ±10.00% (48 runs sampled)</td></tr><tr><td><b>bind</b></td><td>232,081 ops/sec ±6.29% (56 runs sampled)</td></tr><tr><td><b>direct</b></td><td>17,720,205 ops/sec ±5.68% (59 runs sampled)</td></tr></table>


Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>apply</b></td><td>566,853 ops/sec ±16.41% (26 runs sampled)</td></tr><tr><td><b>call</b></td><td>5,463,521 ops/sec ±15.63% (25 runs sampled)</td></tr><tr><td><b>bind</b></td><td>182,237 ops/sec ±14.19% (32 runs sampled)</td></tr><tr><td><b>direct</b></td><td>9,101,004 ops/sec ±10.75% (33 runs sampled)</td></tr></table>

> Notes:
> - Fastest is direct
14 changes: 14 additions & 0 deletions results/inc_int.md
Expand Up @@ -22,6 +22,7 @@ Linux x64 - 3.8.4-1-ARCH
> Notes:
> - Fastest is inc fn,i += 1

Darwin x64 - 13.2.0
-----

Expand All @@ -34,3 +35,16 @@ Darwin x64 - 13.2.0
> Notes:
> - Fastest is inc fn,i += 1

Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>i++</b></td><td>18,522,277 ops/sec ±15.51% (30 runs sampled)</td></tr><tr><td><b>++i</b></td><td>15,313,991 ops/sec ±14.59% (24 runs sampled)</td></tr><tr><td><b>i += 1</b></td><td>17,591,426 ops/sec ±14.98% (35 runs sampled)</td></tr><tr><td><b>inc fn</b></td><td>22,979,097 ops/sec ±14.12% (38 runs sampled)</td></tr></table>

> Notes:
> - Fastest is inc fn
14 changes: 14 additions & 0 deletions results/manip_recv_buf.md
Expand Up @@ -22,6 +22,7 @@ Linux x64 - 3.8.4-1-ARCH
> Notes:
> - Fastest is buffer

Darwin x64 - 13.2.0
-----

Expand All @@ -34,3 +35,16 @@ Darwin x64 - 13.2.0
> Notes:
> - Fastest is string+

Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>buffer</b></td><td>41,801 ops/sec ±20.33% (24 runs sampled)</td></tr><tr><td><b>string+</b></td><td>32,822 ops/sec ±20.36% (26 runs sampled)</td></tr></table>

> Notes:
> - Fastest is buffer,string+
9 changes: 9 additions & 0 deletions results/object_loop.md
Expand Up @@ -31,6 +31,15 @@ Darwin x64 - 13.2.0

<table><tr><td><b>prop in Object</b></td><td>226,247 ops/sec ±9.63% (38 runs sampled)</td></tr><tr><td><b>forEach Object#keys</b></td><td>331,262 ops/sec ±7.89% (33 runs sampled)</td></tr><tr><td><b>for Object#keys.length</b></td><td>1,008,996 ops/sec ±6.72% (50 runs sampled)</td></tr></table>

Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>prop in Object</b></td><td>173,260 ops/sec ±14.62% (29 runs sampled)</td></tr><tr><td><b>forEach Object#keys</b></td><td>265,177 ops/sec ±14.08% (26 runs sampled)</td></tr><tr><td><b>for Object#keys.length</b></td><td>598,904 ops/sec ±12.76% (35 runs sampled)</td></tr></table>

> Notes:
> - Fastest is for Object#keys.length
11 changes: 11 additions & 0 deletions results/proto_vs_literal.md
Expand Up @@ -22,6 +22,7 @@ Linux x64 - 3.8.4-1-ARCH
> Notes:
> - Fastest is prototype

Darwin x64 - 13.2.0
-----

Expand All @@ -31,6 +32,16 @@ Darwin x64 - 13.2.0

<table><tr><td><b>prototype</b></td><td>18,966,638 ops/sec ±9.67% (36 runs sampled)</td></tr><tr><td><b>literal</b></td><td>3,804,899 ops/sec ±9.66% (38 runs sampled)</td></tr><tr><td><b>prototype 1M</b></td><td>4.21 ops/sec ±14.21% (17 runs sampled)</td></tr><tr><td><b>literal 1M</b></td><td>3.97 ops/sec ±11.43% (15 runs sampled)</td></tr></table>


Linux x64 - 3.13.0-34-generic
-----

<table><tr><td><b>node</b></td><td><b>memory</b></td><td><b>cpu</b></td></tr><tr><td>v0.10.29</td><td>8.30 GB</td><td>Intel(R) Core(TM) i5-4200M CPU @ 2.50GHz</td></tr></table>

#### Benchmark Results ####

<table><tr><td><b>prototype</b></td><td>5,865,289 ops/sec ±16.43% (25 runs sampled)</td></tr><tr><td><b>literal</b></td><td>2,056,527 ops/sec ±14.97% (29 runs sampled)</td></tr><tr><td><b>prototype 1M</b></td><td>3.11 ops/sec ±24.00% (12 runs sampled)</td></tr><tr><td><b>literal 1M</b></td><td>2.50 ops/sec ±14.99% (11 runs sampled)</td></tr></table>

> Notes:
> - Fastest is prototype

0 comments on commit 2e01487

Please sign in to comment.