Skip to content
Browse files

Updated README

  • Loading branch information...
1 parent 3d775d6 commit 79e1b6f717a99dc522290f0d12e197813ec2d9a6 @hiddentao committed
Showing with 7 additions and 49 deletions.
  1. +7 −49 README.md
View
56 README.md
@@ -3,61 +3,19 @@ Some performance tests for using Generators in node.js. All tests require **node
## Usage
1. `npm install`
-1. `node --harmony <test file.js>`
+1. `node --harmony <test file.js>` -c <concurrency factor>
-## Results
-
-### Generator delegation
-
-https://github.com/hiddentao/generator-performance-tests/blob/master/perf-generator-delegation.js
-
-This tests the performance impact fro using the `yield *` operator.
-
-```
-// Macbook Air 2012 (2 GHz Intel Core i7 + 8GB 1600MHz DDR3 RAM + OS X 10.9 (13A603))
-// Node 0.11.10
-
-Without delegation x 693 ops/sec ±0.98% (23 runs sampled)
-With delegation x 683 ops/sec ±1.23% (20 runs sampled)
-```
-
-Browser version of this test: http://jsperf.com/generator-delegation
-
-```
-// Macbook Air 2012 (2 GHz Intel Core i7 + 8GB 1600MHz DDR3 RAM + OS X 10.9 (13A603))
-// Firefox Nightly 30.0a1
-
-Without delegation x 119,272 ops/sec ±2.85%
-With delegation x 69,286 ops/sec ±5.17%
-```
+## Browser
+Browser versions of tests:
+ * http://jsperf.com/generator-delegation/3 - delegator performance
+ * http://jsperf.com/generator-iteration-co-vs-bluebird/2 - bluebird vs co
+## Results
-### Bluebird vs co
-
-https://github.com/hiddentao/generator-performance-tests/blob/master/perf-co-vs-bluebird.js
-
-This test tests bluebird's [`Promise.spawn`](https://github.com/petkaantonov/bluebird/blob/master/API.md#promisespawngeneratorfunction-generatorfunction---promise) against [`co`](https://github.com/visionmedia/co)
-
-
-```
-// Macbook Air 2012 (2 GHz Intel Core i7 + 8GB 1600MHz DDR3 RAM + OS X 10.9 (13A603))
-// Node 0.11.10
-
-Bluebird-Promise.spawn x 155 ops/sec ±0.86% (84 runs sampled)
-co x 156 ops/sec ±0.77% (83 runs sampled)
-```
-
-Browser version of this test: http://jsperf.com/generator-iteration-co-vs-bluebird
-
-```
-// Macbook Air 2012 (2 GHz Intel Core i7 + 8GB 1600MHz DDR3 RAM + OS X 10.9 (13A603))
-// Firefox Nightly 30.0a1
+See [http://www.hiddentao.com/archives/2014/02/14/javascript-generator-delegation-and-coroutine-performance/](http://www.hiddentao.com/archives/2014/02/14/javascript-generator-delegation-and-coroutine-performance/)
-Bluebird-Promise.spawn x 50.95 ops/sec ±0.46%
-co x 51.17 ops/sec ±0.54%
-```

0 comments on commit 79e1b6f

Please sign in to comment.
Something went wrong with that request. Please try again.