We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 657d7a5 commit 8d550f7Copy full SHA for 8d550f7
doc/guides/writing-and-running-benchmarks.md
@@ -444,14 +444,14 @@ function main(conf) {
444
const http = require('http');
445
const len = conf.kb * 1024;
446
const chunk = Buffer.alloc(len, 'x');
447
- const server = http.createServer(function(req, res) {
+ const server = http.createServer((req, res) => {
448
res.end(chunk);
449
});
450
451
- server.listen(common.PORT, function() {
+ server.listen(common.PORT, () => {
452
bench.http({
453
connections: conf.connections,
454
- }, function() {
+ }, () => {
455
server.close();
456
457
0 commit comments