File manager - Edit - /home/gzbnyc5/node-v0.10.30/benchmark/http_server_lag.js
Back
var http = require('http'); var port = parseInt(process.env.PORT, 10) || 8000; var defaultLag = parseInt(process.argv[2], 10) || 100; http.createServer(function(req, res) { res.writeHead(200, { 'content-type': 'text/plain', 'content-length': '2' }); var lag = parseInt(req.url.split("/").pop(), 10) || defaultLag; setTimeout(function() { res.end('ok'); }, lag); }).listen(port, 'localhost');
| ver. 1.4 |
Github
|
.
| PHP 8.2.31 | Generation time: 0 |
proxy
|
phpinfo
|
Settings