diff options
Diffstat (limited to 'deps/node/benchmark/http/simple.js')
-rw-r--r-- | deps/node/benchmark/http/simple.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/deps/node/benchmark/http/simple.js b/deps/node/benchmark/http/simple.js deleted file mode 100644 index c6faaaa9..00000000 --- a/deps/node/benchmark/http/simple.js +++ /dev/null @@ -1,26 +0,0 @@ -'use strict'; -const common = require('../common.js'); - -const bench = common.createBenchmark(main, { - // unicode confuses ab on os x. - type: ['bytes', 'buffer'], - len: [4, 1024, 102400], - chunks: [1, 4], - c: [50, 500], - chunkedEnc: [1, 0] -}); - -function main({ type, len, chunks, c, chunkedEnc, res }) { - var server = require('../fixtures/simple-http-server.js') - .listen(common.PORT) - .on('listening', () => { - const path = `/${type}/${len}/${chunks}/normal/${chunkedEnc}`; - - bench.http({ - path: path, - connections: c - }, () => { - server.close(); - }); - }); -} |