From 666a51a58afa49b34d3669505ecd3b19bfa7db99 Mon Sep 17 00:00:00 2001 From: iximeow Date: Sat, 31 Dec 2022 13:34:02 -0800 Subject: add goodfile --- goodfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 goodfile diff --git a/goodfile b/goodfile new file mode 100644 index 0000000..c9e521e --- /dev/null +++ b/goodfile @@ -0,0 +1,18 @@ +-- build/test/evaluation via https://git.iximeow.net/build-o-tron + +if not Build.environment.has("rustup") +then + Build.error("i don't know i want to handle dependencies yet") +end + +Build.run({"cargo", "build"}, {step="build"}) +Build.run({"cargo", "test"}, {step="test", name="test stdlib/fmt"}) +Build.run({"cargo", "run", "--", "--regs", "rax=4,rcx=5,rip=0x123456789a,eflags=0x206", "03c133c9"}) + +-- how long does it take to actually run this thing? +bench_start = Build.now_ms() + +Build.run({"./yaxeval", "--regs", "rax=4,rcx=5,rip=0x123456789a,eflags=0x206", "03c133c9"}, {cwd="target/debug"}) + +bench_end = Build.now_ms() +Build.metric("simple runtime (ms)", bench_end - bench_start) -- cgit v1.1