Skip to content

Commit b450402

Browse files
authored
Merge branch 'main' into chunksize_plots_sizeC_1
2 parents 5573a45 + efd5fcc commit b450402

24 files changed

+494
-289
lines changed

.env

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,23 @@
1-
MINIO_ACCESS_KEY=minioadmin
2-
MINIO_SECRET_KEY=minioadmin
1+
AWS_ACCESS_KEY_ID=minioadmin
2+
AWS_SECRET_ACCESS_KEY=minioadmin
3+
BUCKET=ngff-latency-benchmark
34
HOST=nginx
4-
XY=32768
5-
Z=1
6-
C=32
7-
T=1
8-
XC=256
9-
ZC=1
5+
6+
XY=1024
7+
Z=1024
8+
C=1
9+
T=100
10+
XC=32
11+
ZC=32
12+
ROOT=/var/lib/docker
1013
ROOT=/uod/idr-scratch/ngff-latency-benchmark
11-
DIR=${ROOT}/${XY}-Z-${Z}-T-${T}-C-${C}-XYC-${XC}-ZC-${ZC}
12-
BASE=IMS_XY-${XY}-Z-${Z}-T-${T}-C-${C}-XYC-${XC}-ZC-${ZC}
13-
ROUNDS=5
14-
TEST_REPEATS=10
14+
ROOT=/uod/idr/scratch/idr1-slot2/ngff-latency-benchmark
15+
ROOT=/home/ubuntu/ngff-latency-benchmark
16+
17+
NAME=${XY}-Z-${Z}-T-${T}-C-${C}-XYC-${XC}-ZC-${ZC}
18+
DIR=${ROOT}/${NAME}
19+
BASE=IMS_XY-${NAME}
20+
ROUNDS=20
21+
TEST_REPEATS=1
22+
23+
S3ARGS={"anon": true, "client_kwargs": {"endpoint_url": "http://${HOST}:9000"}}

.env-gha

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
AWS_ACCESS_KEY_ID=minioadmin
2+
AWS_SECRET_ACCESS_KEY=minioadmin
3+
BUCKET=ngff-latency-benchmark
4+
HOST=nginx
5+
6+
XY=32
7+
Z=1
8+
C=1
9+
T=1
10+
XC=1
11+
ZC=1
12+
ROOT=/tmp
13+
NAME=${XY}-Z-${Z}-T-${T}-C-${C}-XYC-${XC}-ZC-${ZC}
14+
DIR=${ROOT}/${NAME}
15+
BASE=IMS_XY-${NAME}
16+
ROUNDS=20
17+
TEST_REPEATS=1
18+
19+
S3ARGS={"anon": true, "client_kwargs": {"endpoint_url": "http://${HOST}:9000"}}

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: Build
3+
4+
on:
5+
push:
6+
pull_request:
7+
schedule:
8+
- cron: '0 0 * * 0'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Set env
16+
run: |
17+
rm .env
18+
mv .env-gha .env
19+
- name: Build
20+
run: |
21+
docker-compose pull && docker-compose build
22+
- name: Generate
23+
run: ./generate.sh
24+
- name: Start Upload and Run benchmark
25+
run: ./test.sh
26+
- name: Check logs
27+
run: docker-compose logs
28+
if: ${{ failure() }}

.isort.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[settings]
2-
known_third_party = fsspec,h5py,matplotlib,numpy,pandas,pytest,requests,s3fs,seaborn,tifffile,zarr
2+
known_third_party = fsspec,h5py,matplotlib,numpy,pandas,ptitprince,pytest,requests,s3fs,seaborn,tifffile,zarr

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ repos:
1010
rev: 5.3.2
1111
hooks:
1212
- id: isort
13+
args: ["--profile", "black"]
1314

1415
- repo: https://github.com/ambv/black
1516
rev: 20.8b1

README.md

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# How to use this repository
1+
[![DOI](https://zenodo.org/badge/329595844.svg)](https://zenodo.org/badge/latestdoi/329595844)
2+
3+
# OME-NGFF: latency benchmark
24

35
To get started, clone this repository locally:
46
```
@@ -17,16 +19,6 @@ You will likely want to adjust the parameters in `.env` first, then run:
1719
which will run several docker-compose commands in a row. This could take
1820
a substantial amount of time depending on your parameters.
1921

20-
## Or, alternatively download a sample file
21-
22-
```
23-
mkdir data
24-
cd data
25-
../retina.sh
26-
```
27-
28-
If you choose to use `retina_large`, you will also need to adjust the parameters in `.env`.
29-
3022

3123
## Then, start S3 and upload the data
3224

benchmark/Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ FROM continuumio/miniconda3
22
COPY environment.yml /tmp/environment.yml
33
RUN conda update -n base -c defaults conda
44
RUN conda env create -n benchmark -f /tmp/environment.yml
5+
RUN conda list -n benchmark
56

67
# Note: docker-compose.yml mounts this file on each run
78
# to prevent stale copies.
89
COPY benchmark.sh /benchmark/benchmark.sh
910
COPY benchmark.py /benchmark/benchmark.py
10-
COPY plot_results.py /benchmarks/plot_results.py
11+
COPY plot_results.py /benchmark/plot_results.py
1112

12-
# see https://github.com/zarr-developers/zarr-python/pull/699
13-
RUN conda run -n benchmark pip install git+https://github.com/joshmoore/zarr-python@key-sep#egg=zarr
1413
RUN conda run -n benchmark pip install pytest-profiling
1514
RUN conda run -n benchmark pip install seaborn
15+
RUN conda run -n benchmark pip install pytest-csv
16+
RUN conda run -n benchmark pip install ptitprince
1617

1718
ENTRYPOINT ["conda", "run", "--no-capture-output", "-n", "benchmark", "bash", "/benchmark/benchmark.sh"]

0 commit comments

Comments
 (0)