Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
benchmark: Repair http chunked benchmark
Cast to number the configuration size before passing it to the buffer constructor.

Signed-off-by: Sorin Baltateanu <sorin.baltateanu@intel.com>
  • Loading branch information
Sorin Baltateanu
Sorin Baltateanu committed Jul 11, 2016
commit 129b4c4a4ff6e86ed6a490f8a691114e8c3e5c92
2 changes: 1 addition & 1 deletion benchmark/http/chunked.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ var bench = common.createBenchmark(main, {

function main(conf) {
const http = require('http');
var chunk = Buffer.alloc(conf.size, '8');
var chunk = Buffer.alloc(+conf.size, '8');

var args = ['-d', '10s', '-t', 8, '-c', conf.c];

Expand Down