Add quickjs benchmark script

This commit is contained in:
Sergi Àlvarez i Capilla 2022-01-06 22:49:42 +01:00
parent 37897226a1
commit 06457a9044
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,5 @@
T=rarun2 time=true
F=../bins/elf/ls
all:
for a in r2pipe/* ; do echo "[TT] $$a" ; $T system="r2 -qi $$a /bin/ls" > /dev/null ; done
for a in r2pipe/* ; do echo "[TT] $$a" ; $T system="r2 -qi $$a $F" > /dev/null ; done

View File

@ -1,4 +1,4 @@
import("r2").then((r2) => {
var a = JSON.parse(r2.cmd("aa;aflj"));
r2.log(JSON.stringify(a));
var a = JSON.parse(r2.cmd("aa;aflj"));
r2.log(JSON.stringify(a));
});