Browse Source

stupid while loop benchmark

master
Martin Dørum 7 months ago
parent
commit
16e07fe64a

+ 2
- 0
benchmarks/while-perf/bench.sh View File

@@ -0,0 +1,2 @@
#!/bin/sh
hyperfine '../../bx-out/target while-test.l2' 'python3 while-test.py'

+ 2
- 0
benchmarks/while-perf/while-test.l2 View File

@@ -0,0 +1,2 @@
i := 0
while {i < 1'000'000} {i = i + 1}

+ 2
- 0
benchmarks/while-perf/while-test.py View File

@@ -0,0 +1,2 @@
i = 0
while i < 10000000: i = i + 1

Loading…
Cancel
Save