Skip to content
Closed
Show file tree
Hide file tree
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: remove unused variables
Remove variables that are assigned but never used.

(This was missed by the linter in previous versions of ESLint but is
flagged by the current version. Updating the linter is contingent on
this change or some similar remedy landing.)
  • Loading branch information
Trott committed Jul 7, 2016
commit 5246294f6546c20a651a0b48bafed194e5e58595
5 changes: 0 additions & 5 deletions benchmark/dgram/array-vs-concat.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ var dgram = require('dgram');

function server() {
var sent = 0;
var received = 0;
var socket = dgram.createSocket('udp4');

var onsend = type === 'concat' ? onsendConcat : onsendMulti;
Expand Down Expand Up @@ -71,9 +70,5 @@ function server() {
}, dur * 1000);
});

socket.on('message', function(buf, rinfo) {
received++;
});

socket.bind(PORT);
}
4 changes: 0 additions & 4 deletions benchmark/http/_chunky_http_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ function main(conf) {
}
}

var success = 0;
var failure = 0;
var min = 10;
var size = 0;
var mod = 317;
Expand All @@ -69,14 +67,12 @@ function main(conf) {
if ((d.length === pattern.length && d === pattern) ||
(d.length > pattern.length &&
d.slice(0, pattern.length) === pattern)) {
success += 1;
did = true;
} else {
pattern = 'HTTP/1.1 ';
if ((d.length === pattern.length && d === pattern) ||
(d.length > pattern.length &&
d.slice(0, pattern.length) === pattern)) {
failure += 1;
did = true;
}
}
Expand Down
2 changes: 0 additions & 2 deletions benchmark/static_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ var port = 12346;
var n = 700;
var bytes = 1024 * 5;

var requests = 0;
var responses = 0;

var body = 'C'.repeat(bytes);
Expand Down Expand Up @@ -37,6 +36,5 @@ server.listen(port, function() {
});
});
req.id = i;
requests++;
}
});