benchmarks
¶
Module: benchmarks.bench_array_to_file
¶
Benchmarks for array_to_file routine
Run benchmarks with:
import nibabel as nib
nib.bench()
Run this benchmark with:
pytest -c <path>/benchmarks/pytest.benchmark.ini <path>/benchmarks/bench_array_to_file.py
Module: benchmarks.bench_arrayproxy_slicing
¶
Benchmarks for ArrayProxy slicing of gzipped and non-gzipped files
Run benchmarks with:
import nibabel as nib
nib.bench()
Run this benchmark with:
pytest -c <path>/benchmarks/pytest.benchmark.ini <path>/benchmarks/bench_arrayproxy_slicing.py
Module: benchmarks.bench_fileslice
¶
Benchmarks for fileslicing
import nibabel as nib nib.bench()
Run this benchmark with:
pytest -c <path>/benchmarks/pytest.benchmark.ini <path>/benchmarks/bench_fileslice.py
|
|
|
Module: benchmarks.bench_finite_range
¶
Benchmarks for finite_range routine
Run benchmarks with:
import nibabel as nib
nib.bench()
Run this benchmark with:
pytest -c <path>/benchmarks/pytest.benchmark.ini <path>/benchmarks/bench_finite_range.py
Module: benchmarks.bench_load_save
¶
Benchmarks for load and save of image arrays
Run benchmarks with:
import nibabel as nib
nib.bench()
Run this benchmark with:
pytest -c <path>/benchmarks/pytest.benchmark.ini <path>/benchmarks/bench_load_save.py
Module: benchmarks.bench_streamlines
¶
Benchmarks for load and save of streamlines
Run benchmarks with:
import nibabel as nib
nib.bench()
Run this benchmark with:
pytest -c <path>/benchmarks/pytest.benchmark.ini <path>/benchmarks/bench_streamlines.py
Module: benchmarks.butils
¶
Benchmarking utilities
|
Prints title string with git hash if possible, and underline |
bench_fileslice¶
-
nibabel.benchmarks.bench_fileslice.
bench_fileslice
(bytes=True, file_=True, gz=True, bz2=False)¶