[feat] #1 nodejs addon bench

Signed-off-by: Anton Nesterov <anton@demiurg.io>
This commit is contained in:
Anton Nesterov 2024-08-26 22:42:56 +02:00
parent 18a0a1e9a1
commit ad8614f30c
No known key found for this signature in database
GPG key ID: 59121E8AE2851FB5
2 changed files with 2 additions and 1 deletions

View file

@ -55,7 +55,7 @@ const buf = fs.readFileSync("./pkg/__test__/proto_test.msgpack");
const iter = dal.RowIterator(buf);
MEM("AFTER INIT");
let dataTransferedBytes = 0;
for (let i = 0; i < 10000000000; i++) {
for (let i = 0; i < 100000000; i++) {
const b = iter.next();
if (b.length === 0) {
break;

View file

@ -23,6 +23,7 @@
"test:client": "bun test:*",
"test:dal": "bun test dal/__test__",
"test:serve": "cd dal/__test__/srv && go run main.go",
"bench:node": "node ./dal/__test__/bench.node.cjs",
"fmt": "prettier --write .",
"build": "tsc",
"prepublish": "tsc",