Este sitio web funciona mejor con JavaScript.
Inicio
Explorar
Ayuda
Iniciar sesión
mort
/
lang2
Seguir
1
Destacar
0
Fork
0
Código
Incidencias
0
Peticiones pull
0
Lanzamientos
0
Wiki
Actividad
Explorar el Código
stupid while loop benchmark
master
Martin Dørum
hace 3 años
padre
a47c9f918f
commit
16e07fe64a
Se han
modificado 3 ficheros
con
6 adiciones
y
0 borrados
Dividir vista
Mostrar estadísticas de 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 fichero
@@ -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 fichero
@@ -0,0 +1,2 @@
i := 0
while {i < 1'000'000} {i = i + 1}
+ 2
- 0
benchmarks/while-perf/while-test.py
Ver fichero
@@ -0,0 +1,2 @@
i = 0
while i < 10000000: i = i + 1
Escribir
Vista previa
Cargando…
Cancelar
Guardar