benchmarks¶
Module: benchmarks.bench_array_to_file¶
Benchmarks for array_to_file routine
Run benchmarks with:
import nibabel as nib
nib.bench()
If you have doctests enabled by default in nose (with a noserc file or environment variable), and you have a numpy version <= 1.6.1, this will also run the doctests, let’s hope they pass.
Run this benchmark with:
nosetests -s –match ‘(?:^|[b_.//-])[Bb]ench’ /path/to/bench_load_save.py
bench_array_to_file() |
Module: benchmarks.bench_arrayproxy_slicing¶
Benchmarks for ArrayProxy slicing of gzipped and non-gzipped files
Run benchmarks with:
import nibabel as nib
nib.bench()
If you have doctests enabled by default in nose (with a noserc file or environment variable), and you have a numpy version <= 1.6.1, this will also run the doctests, let’s hope they pass.
Run this benchmark with:
nosetests -s –match ‘(?:^|[b_.//-])[Bb]ench’ /path/to/bench_arrayproxy_slicing.py
bench_arrayproxy_slicing() |
Module: benchmarks.bench_fileslice¶
Benchmarks for fileslicing
import nibabel as nib nib.bench()
If you have doctests enabled by default in nose (with a noserc file or environment variable), and you have a numpy version <= 1.6.1, this will also run the doctests, let’s hope they pass.
Run this benchmark with:
nosetests -s –match ‘(?:^|[b_.//-])[Bb]ench’ /path/to/bench_fileslice.py
bench_fileslice([bytes, file_, gz, bz2]) |
|
run_slices(file_like[, repeat, offset, order]) |
Module: benchmarks.bench_finite_range¶
Benchmarks for finite_range routine
Run benchmarks with:
import nibabel as nib
nib.bench()
If you have doctests enabled by default in nose (with a noserc file or environment variable), and you have a numpy version <= 1.6.1, this will also run the doctests, let’s hope they pass.
Run this benchmark with:
nosetests -s –match ‘(?:^|[b_.//-])[Bb]ench’ /path/to/bench_finite_range
bench_finite_range() |
Module: benchmarks.bench_load_save¶
Benchmarks for load and save of image arrays
Run benchmarks with:
import nibabel as nib
nib.bench()
If you have doctests enabled by default in nose (with a noserc file or environment variable), and you have a numpy version <= 1.6.1, this will also run the doctests, let’s hope they pass.
Run this benchmark with:
nosetests -s –match ‘(?:^|[b_.//-])[Bb]ench’ /path/to/bench_load_save.py
bench_load_save() |
Module: benchmarks.bench_streamlines¶
Benchmarks for load and save of streamlines
Run benchmarks with:
import nibabel as nib
nib.bench()
If you have doctests enabled by default in nose (with a noserc file or environment variable), and you have a numpy version <= 1.6.1, this will also run the doctests, let’s hope they pass.
Run this benchmark with:
nosetests -s –match ‘(?:^|[b_.//-])[Bb]ench’ /path/to/bench_streamlines.py
bench_load_trk() |
Module: benchmarks.butils¶
Benchmarking utilities
print_git_title(title) |
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)¶