Benchmarks for common python I/O patterns
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- python
- Ambito
- performance
Direzione di ricerca
Esamina l'organizzazione esistente dei benchmark di pyperformance e le forme di I/O proposte in questo issue, mantenendo l'ambito al livello Binary/Bytes IO. Definisci un gruppo eseguibile manualmente che copra i casi comuni selezionati, quindi verifica che non sia abilitato per impostazione predefinita e che i benchmark esercitino i pattern previsti di file, stream, archivi, importazione o concorrenza.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
As work happens on I/O pieces I've been building specialized micro-benchmarks (ex. gh-120754 Speed up open().read() pattern by reducing the number of system calls and others have gh-117151: IO performance improvement, increase io.DEFAULT_BUFFER_SIZE to 128k), it would be nice to have more general benchmarks to validate I/O performance for common cases.
Talking a little with people at PyConUS there was some interest in the tests, and a general desire for I/O tests not to be enabled by default, but to be a group which can be manually run.
General I/O shapes I'm hoping to add benchmarks for:
- read/write all of the byes of a file in a single call (including pathlib.Path.read_text, pathlib.Path.write_text)
- read/write many small files (ex.
.pycfiles, maybe justcompile_all?) - streaming bytes read/write (ex. to a pipe / console such as stdin/stdout/stderr, non-seekable devices)
- read/write a zipfile, tarfile (read + seek, write + seek, in particular buffering behavior)
- use
zipimport - Create a
zipapp - Multi-threaded write to stdout, stderr (ex. logging in a large application/codebase)
Note: With these aiming to stay at the Binary / Bytes IO layer as much as possible (not touch Text I/O for now)
- Lingua principale
- Python
- Stelle
- 1k
- Fork
- 203
- Merge medio
- 1h 20m
- PR unite (30g)
- 2
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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 python/pyperformance
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
python/pyperformance#346 · 3 commenti ·
-
python/pyperformance#474 · 4 reazioni · 1 assegnatario ·
-
Enable decimal benchmarks Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
python/pyperformance#473 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
python/pyperformance#464 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
python/pyperformance#460 · 2 commenti · 1 reazione ·
Tutte le issue di python/pyperformance
Issue simili
-
sponsored
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
Diaoul/subliminal#1382 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
-
triage/confirmed
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
agentscope-ai/agentscope#2775 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100