Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
mort
/
lang2
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
0
Wiki
Atividade
Ver código fonte
stupid while loop benchmark
master
Martin Dørum
3 anos atrás
pai
a47c9f918f
commit
16e07fe64a
3 arquivos alterados
com
6 adições
e
0 exclusões
Visão dividida
Mostrar estatísticas do Diff
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
Ver arquivo
@@ -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
Ver arquivo
@@ -0,0 +1,2 @@
i := 0
while {i < 1'000'000} {i = i + 1}
+ 2
- 0
benchmarks/while-perf/while-test.py
Ver arquivo
@@ -0,0 +1,2 @@
i = 0
while i < 10000000: i = i + 1
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar