qazcetelic
06/14/2026, 3:32 PMxuanwo
06/15/2026, 8:04 AMsync_call after write to make sure the file is really presist on the fs, but tokio::fs::write didn't.
- opendal's delete works for both file and dir (so users don't need to tell whether it's a dir or not).
If we changed tokio to do the similiar things:
create_dir_all + open/create/truncate + write_all + flush + sync_all + metadata
we will get the similiar results (even faster):
OpenDAL duration: 48.20476275s, throughput: 207.45 files/s
Tokio duration : 48.531082918s, throughput: 206.05 files/s
Tokio/OpenDAL throughput ratio: 0.99xqazcetelic
06/15/2026, 5:41 PMxuanwo
06/16/2026, 7:59 AMfs::write with creating a tokio File and calling write_all and sync_all instead