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: add a constant declaration for net
Constant declaration for `net` is omitted in `idle_server.js`
Add a constant declaration for constant `net`

benchmark: add constant declarations for `net`
  • Loading branch information
JungMinu committed Nov 21, 2015
commit 9230dd69641dbebefbd7b253d4645287327436cb
10 changes: 5 additions & 5 deletions benchmark/idle_server.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
net = require('net');
connections = 0;
'use strict';

const net = require('net');
var connections = 0;
var errors = 0;

server = net.Server(function (socket) {
var server = net.Server(function (socket) {

socket.on('error', function () {
errors++;
errors++;
});

});
Expand All @@ -28,4 +29,3 @@ setInterval(function () {
console.log("SERVER %d errors: %d", process.pid, errors);
}
}, 1000);