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

13 lines
310 B
TypeScript

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