Skip to content

Commit

Permalink
bench accuracy
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Aug 8, 2020
1 parent a3860bd commit 94eebad
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions benchmarks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const pool = undici(`https://${httpOptions.hostname}:${httpOptions.port}`, {

const suite = new Benchmark.Suite()

Benchmark.options.minSamples = 200

suite
.add('http - keepalive', {
defer: true,
Expand All @@ -59,18 +61,6 @@ suite
})
}
})
.add('http - noop', {
defer: true,
fn: deferred => {
http.get(httpOptions, response => {
response
.resume()
.on('end', () => {
deferred.resolve()
})
})
}
})
.add('undici - pipeline', {
defer: true,
fn: deferred => {
Expand Down

0 comments on commit 94eebad

Please sign in to comment.