Files
wehub-resource-sync f30f816e96
build-deb / build (push) Has been cancelled
build / build (5.2.0+ox, ubuntu_x64_8_cores, 231c88c2e564fdca40e15e750aacad5fb0887435) (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:29:01 +08:00

24 lines
592 B
JavaScript
Executable File

#!/usr/bin/env -S node --perf-basic-prof
// Magic-trace requires a map of JIT-ed symbols, which node will
// generate if you provide --perf-basic-prof.
// Spams HTTP requests to an HTTP server. One connection, one request in flight at all times.
const http = require('http');
const PORT = 40210
function req(req, resp) {
resp.end()
}
server = http.createServer(req);
server.listen(PORT);
const options = { host: '127.0.0.1', method: 'GET', path: '/', port: PORT }
const reqloop = () => {
var request = http.request(options, (response) => reqloop())
request.end()
};
reqloop();