Some performance tests for when using generator in node.js