📅  最后修改于: 2022-03-11 15:02:58.582000             🧑  作者: Mango
const loadtest = require('loadtest'); const options = { url: 'https://www.example.com', maxRequests: 100, secureProtocol: 'TLSv1_method'}; loadtest.loadTest(options, function(error) { if (error) { return console.error('Got an error: %s', error); } console.log('Tests run successfully');});