TSRPC_Test/benchmark/ws.ts
2022-04-29 15:25:10 +08:00

13 lines
304 B
TypeScript

import { benchmarkConfig } from './config/BenchmarkConfig';
import { WsRunner } from './models/WsRunner';
const req = {
a: 123456,
b: 'Hello, World!',
c: true,
d: new Uint8Array(100000)
}
new WsRunner(async function () {
await this.callApi('Test', req);
}, benchmarkConfig).start();