@colyseus/loadtest
Advanced tools
Comparing version 0.16.0-preview.1 to 0.16.0-preview.3
@@ -20,2 +20,6 @@ var __create = Object.create; | ||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( | ||
// If the importer is in node compatibility mode or this is not an ESM | ||
// file that has been converted to a CommonJS file using a Babel- | ||
// compatible transform (i.e. "__esModule" has not been set), then set | ||
// "default" to the CommonJS "module.exports" for node compatibility. | ||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, | ||
@@ -57,3 +61,3 @@ mod | ||
return new Promise((resolve, reject) => { | ||
const now = new Date(); | ||
const now = /* @__PURE__ */ new Date(); | ||
this.handle.write(`[${now.toLocaleString()}] ${contents} | ||
@@ -102,2 +106,3 @@ `, (err) => { | ||
logLevel: argv.logLevel?.toLowerCase() || "all", | ||
// TODO: not being used atm | ||
reestablishAllDelay: argv.reestablishAllDelay || 0, | ||
@@ -184,2 +189,3 @@ retryFailed: argv.retryFailed || 0, | ||
import_blessed.default.text({ top: 2, left: 1, tags: true, content: `{yellow-fg}cpu:{/yellow-fg} ...` }) | ||
// blessed.text({ top: 1, left: 1, content: `memory: ${process.memoryUsage().heapUsed} / ${process.memoryUsage().heapTotal}` }) | ||
], | ||
@@ -201,2 +207,3 @@ tags: true, | ||
import_blessed.default.text({ top: 2, left: 1, tags: true, content: `{yellow-fg}bytes sent:{/yellow-fg} ...` }) | ||
// blessed.text({ top: 1, left: 1, content: `memory: ${process.memoryUsage().heapUsed} / ${process.memoryUsage().heapTotal}` }) | ||
], | ||
@@ -220,2 +227,3 @@ tags: true, | ||
}, | ||
// scroll | ||
scrollable: true, | ||
@@ -280,6 +288,10 @@ input: true, | ||
const hasError = closeCode > 0; | ||
await logWriter.write(`Finished. Summary: | ||
await logWriter.write( | ||
`Finished. Summary: | ||
Successful connections: ${totalStats.connected} | ||
Failed connections: ${totalStats.failed} | ||
Total errors: ${totalStats.errors}`, true); | ||
Total errors: ${totalStats.errors}`, | ||
true | ||
/* closing */ | ||
); | ||
process.exit(hasError ? 1 : 0); | ||
@@ -286,0 +298,0 @@ } |
{ | ||
"name": "@colyseus/loadtest", | ||
"version": "0.16.0-preview.1", | ||
"version": "0.16.0-preview.3", | ||
"description": "Utility tool for load testing Colyseus.", | ||
@@ -9,2 +9,8 @@ "input": "./src/index.ts", | ||
"typings": "./build/index.d.ts", | ||
"exports": { | ||
".": { | ||
"import": "./build/index.mjs", | ||
"require": "./build/index.js" | ||
} | ||
}, | ||
"bin": { | ||
@@ -11,0 +17,0 @@ "colyseus-loadtest": "./bin.js" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
86251
880