TSRPC_Test/benchmark/ws.ts

13 lines
304 B
TypeScript
Raw Normal View History

2022-04-29 07:25:10 +00:00
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();