Core Principle

Oxen was designed from the ground up to be fast. Whether you have many small files, a few large files, or a mix of both, Oxen intelligently hashes, packages, and syncs the data as fast as an Ox physically can.

CelebA Dataset

The CelebA dataset has 202,599 images of celebrity faces and their attributes.

~ TLDR ~

  • ✅ Oxen syncs all the images in under 6 minutes
  • 👎 aws s3 cp takes almost 40 minutes to sync all 200k images
  • 😩 DVC+Dags Hub took over 2 hours and 40 minutes with intermittent failures
  • 🐢 git+git lfs syncing GitHub took over 4 hours

oxen performance metrics

🐂 Oxen

oxen add images # ~10 sec
oxen commit -m "adding images # ~41 sec
oxen push origin main # ~308.98 secs

Total time or < 6 min to sync to Oxen.

aws s3 cp

You may currently be storing your training data in AWS s3 buckets. Even this is slower than syncing to Oxen. Not to mention it lacks other features you gain with Oxen.

The AWS S3 tool syncs each image sequentially and takes about 38 minutes to complete. Oxen optimizes the file transfer, compresses the data, and has a 5-10x performance improvement depending on your network and compute.

time aws s3 cp images/ s3://testing-celeba --recursive
________________________________________________________
Executed in   38.87 mins

Git + Git LFS

Compare this to a system like git lfs on the same dataset

git init
git lfs install
git lfs track "*.jpg"
git add .gitattributes
git add images # ~189 sec
git commit -m "adding images" # ~32 sec

Push to GitHub had a transfer speed anywhere from 80-100 kb/s

$ git remote add origin git@github.com:Oxen-AI/GitLFS-CelebA.git
$ git push origin main # ~264 mins

Uploading LFS objects: 100% (202468/202468), 1.4 GB | 99 KB/s, done.                                                                                                             
________________________________________________________
Executed in  264.55 mins    fish           external

Total time: ~4.4 hours

DVC + DagsHub

DVC is built on top of git + an open source project and can be synced to a hub called DagsHub.

dvc init
dvc add images/ # ~460.13 secs
dvc push -r origin # ~160.95 mins

~2 hours 40 minutes with intermittent failures

dvc push fail

WIP: CI Performance Numbers

We are working a CI script that publishes numbers on every release. On a meta level, we are going to store these metrics in an Oxen Data Repository

# Setup Remote Workspace
oxen clone https://hub.oxen.ai/ox/performance --shallow
cd performance

# ... Do the work to clone CelebA then push to a separate remote with all tools ...

# Assuming there are columns
# date,version,tool,dataset,clone_time,push_time
oxen remote df data/clone.csv --add-row "$DATE,$VERSION,oxen,CelebA,$OXEN_CLONE_TIME,$OXEN_PUSH_TIME"
oxen remote commit -m "performance testing $DATE"