Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
mort
/
lang2
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
stupid while loop benchmark
master
Martin Dørum
3 anni fa
parent
a47c9f918f
commit
16e07fe64a
3 ha cambiato i file
con
6 aggiunte
e
0 eliminazioni
Visualizzazione separata
Mostra 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
Vedi 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
Vedi File
@@ -0,0 +1,2 @@
i := 0
while {i < 1'000'000} {i = i + 1}
+ 2
- 0
benchmarks/while-perf/while-test.py
Vedi File
@@ -0,0 +1,2 @@
i = 0
while i < 10000000: i = i + 1
Write
Preview
Loading…
Annulla
Salva