Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

benchmark: add `object`

  • Loading branch information...
commit 0f193f0c4214317aee72311e2522f7b84d892356 1 parent 6a7e0eb
jongleberry jonathanong authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 benchmark.js
12 benchmark.js
View
@@ -37,12 +37,22 @@ suite('co()', function(){
})(done);
})
- bench('thunk join', function(done){
+ bench('arrays', function(done){
co(function *(){
yield [fun, fun, fun];
})(done);
})
+ bench('objects', function(done){
+ co(function *(){
+ yield {
+ a: fun,
+ b: fun,
+ c: fun
+ };
+ })(done);
+ })
+
bench('generators', function(done){
co(function *(){
yield gen();
Please sign in to comment.
Something went wrong with that request. Please try again.