[feat] #1 nodejs addon bench
Signed-off-by: Anton Nesterov <anton@demiurg.io>
This commit is contained in:
parent
18a0a1e9a1
commit
ad8614f30c
|
@ -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;
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue