Benchmark .add() is undefined (nodejs)? #40

Closed
reggi opened this Issue Apr 5, 2013 · 1 comment

Projects

None yet

1 participant

@reggi
reggi commented Apr 5, 2013
var Benchmark = require('benchmark');
console.log(Benchmark.add);
console.log(Benchmark.Benchmark.add);
console.log(Benchmark().add);
@reggi
reggi commented Apr 5, 2013

I figured it out var Benchmark = require('benchmark').Suite(); that was unclear.

@reggi reggi closed this Apr 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment