Skip to content

Instantly share code, notes, and snippets.

@jpoehls
jpoehls / main.js
Created February 17, 2012 16:33
Benchmark.js deferred
var Benchmark = require('benchmark');
var request = require('request');
var suite = new Benchmark.Suite;
// add tests
suite.add('Calling cow api', {
defer: true,
fn: function(deferred) {
request({