Add a variant of runBenchmark which also takes iteration range.
Nessuno ha ancora preso questa issue.
- #255 di @phadej — chiusa senza merge
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Ferma
- Stack tecnologico
- haskell
- Ambito
- performance
Direzione di ricerca
La issue nomina runBenchmark, ma non identifica i file di implementazione né i test. Inizia individuando runBenchmark e verificando come viene gestito attualmente il suo limite di tempo. Definisci i campi dei record e i criteri di arresto previsti sulla base del riepilogo, quindi aggiungi test che dimostrino che i limiti di iterazione e di tempo vengono applicati come specificato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Currently there is:
runBenchmark :: Benchmarkable -> Double -> IO (Vector Measured, Double)
Run a single benchmark, and return measurements collected while executing it, along with the amount of time the measurement process took.
Double argument is: Lower bound on how long the benchmarking process should take. In practice, this time limit may be exceeded in order to generate enough data to perform meaningful statistical analyses.
I'd like to have a variant where we can specify the optional lower and upper bounds for iteration count (run at least 10 times, no need to run over 100 times).
Lower bound would be great to ensure more statistical significance. Upper bound would allow to avoid running individual benchmark for too long.
I think that then we'd need both lower and upper bound for time as well (current is actually more like soft upper bound, but as there are no end criteria it's also a lower bound).
I think it would best to put these four options into a record, to avoid double-blindness.
In case when no bounds is specified, we could either fail or use some default time bound.
EDIT: summary:
- the end criteria would be in N dimensions: you can stop only when all lower bounds are crossed and at least one upper bound.
- no lower bound specified: zero
- no upper bounds: set time to default, other unset ones are "infinity"/unreachable.
EDIT2; tasty-bench does analysis, and decides end criteria on the fly. That's another option and can be used to implement the above; but i think the above is still conseptually simpler.
i offer to write a patch.
- Lingua principale
- Haskell
- Stelle
- 525
- Fork
- 88
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di haskell/criterion
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 48/100
-
first benchmark is expensiveAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 48/100
Tutte le issue di haskell/criterion
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
haskell/bytestring#730 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
seal-harness/seal-harness#399 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
fmidue/codeworld-tasks#124 ·
-
allow haskell-src-exts-1.24Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
reflex-frp/reflex#563 ·