This website works better with JavaScript.
Home
Explore
Help
Sign In
mort
/
lang2
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
stupid while loop benchmark
master
Martin Dørum
3 years ago
parent
a47c9f918f
commit
16e07fe64a
3 changed files
with
6 additions
and
0 deletions
Split View
Show Diff Stats
2
0
benchmarks/while-perf/bench.sh
2
0
benchmarks/while-perf/while-test.l2
2
0
benchmarks/while-perf/while-test.py
+ 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
Write
Preview
Loading…
Cancel
Save