Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 803 Bytes

README.md

File metadata and controls

40 lines (26 loc) · 803 Bytes

Ops Benchmark Tests

Ops Benchmark Tests measure every operation's performance on the target platform.

To support benching different backends simultaneously, we use environment value to carry the backend config.

Setup

Please copy .env.example to .env and change the values on need.

Take fs for example, we need to enable bench on fs on /tmp.

OPENDAL_FS_TEST=false
OPENDAL_FS_ROOT=/path/to/dir

into

OPENDAL_FS_TEST=on
OPENDAL_FS_ROOT=/tmp

Notice: The default will skip all benches if the env is not set.

Run

Test all available backend.

cargo bench --features tests

Test specific backend, take s3 for example, first set the corresponding environment variables of s3, then:

OPENDAL_TEST=s3
cargo bench --features tests