Skip to content

ome/bioimage-latency-benchmark

Folders and files

NameName
Last commit message
Last commit date
May 3, 2021
Oct 4, 2021
Apr 7, 2021
Nov 22, 2021
Jan 14, 2021
Apr 5, 2022
Dec 13, 2021
Jan 31, 2022
Oct 1, 2021
Sep 26, 2021
Jan 29, 2021
Sep 26, 2021
Apr 15, 2021
Apr 15, 2021
Sep 26, 2021
Dec 6, 2021
May 3, 2021
Oct 10, 2022
Aug 25, 2021
Sep 26, 2021
Apr 15, 2021
Nov 19, 2021
Jan 9, 2021
Feb 9, 2021
Apr 8, 2021
Sep 26, 2021

Repository files navigation

DOI Binder Open In Colab

Bioimage Latency Benchmark

This benchmark measures the time taken to retrieve chunks from different binary formats used in bioimaging. Currently, TIFF, HDF5 and Zarr are supported.

This benchmark was included in the original OME-NGFF paper to demonstrate the benefits of next-generation file formats.

The easiest way to get started with the benchmark is by using Docker. For more reproducible results, instructions are provided on launching dedicated Amazon EC2 instances.

Quick start

To get started, clone this repository locally:

git clone https://github.com/ome/bioimage-latency-benchmark.git
cd bioimage-latency-benchmark

Generate sample data

You will likely want to adjust the parameters in .env first, then run:

./generate.sh

which will run several docker-compose commands in a row. This could take a substantial amount of time depending on your parameters.

Then, start S3 and upload the data

Start the various Docker containers in the background ("detached" mode):

docker-compose up -d

Once the containers are up, run:

docker-compose run --rm upload

Finally, run the benchmark

docker-compose run --rm benchmark -sv

This will store both the benchmarking results ('benchmark_data.json') as well as a plotted graph ('benchmark_plot.png') in the directory along with the input data.