Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement: using std::os::unix::fs::FileExt to random read tokio file #150

Closed
wants to merge 3 commits into from

Conversation

ethe
Copy link
Member

@ethe ethe commented Mar 13, 2025

❯ cargo bench -p fusio --bench=tokio --features="tokio,dyn,fs" -- --nocapture
   Compiling fusio v0.3.7 (/home/continuity/fusio/fusio)
    Finished `bench` profile [optimized] target(s) in 11.04s
     Running ../benches/tokio.rs (/home/continuity/fusio/target/release/deps/tokio-db3ff1ee7334c9e5)
write/fusio write 4K    time:   [41.921 µs 42.159 µs 42.460 µs]
                        change: [+8.6948% +9.6324% +10.600%] (p = 0.00 < 0.05)
                        Performance has regressed.
Found 3 outliers among 100 measurements (3.00%)
  1 (1.00%) high mild
  2 (2.00%) high severe
write/tokio write 4K    time:   [43.499 µs 43.779 µs 44.075 µs]
                        change: [-0.5527% +0.2934% +1.0996%] (p = 0.48 > 0.05)
                        No change in performance detected.
Found 3 outliers among 100 measurements (3.00%)
  1 (1.00%) low mild
  2 (2.00%) high mild

read/fusio read 4K      time:   [1.3348 µs 1.3404 µs 1.3468 µs]
                        change: [-9.3138% -8.7821% -8.1872%] (p = 0.00 < 0.05)
                        Performance has improved.
read/tokio read 4K      time:   [54.279 µs 55.032 µs 55.713 µs]
                        change: [+15.452% +18.231% +21.115%] (p = 0.00 < 0.05)
                        Performance has regressed.
Found 11 outliers among 100 measurements (11.00%)
  5 (5.00%) low severe
  5 (5.00%) low mild
  1 (1.00%) high mild

@ethe ethe force-pushed the feat/read-exact branch 2 times, most recently from aff9129 to db87320 Compare March 13, 2025 10:16
@ethe ethe force-pushed the feat/read-exact branch 2 times, most recently from 88f692f to 9cdc167 Compare March 13, 2025 11:39
@ethe ethe force-pushed the feat/read-exact branch from 9cdc167 to adc3805 Compare March 13, 2025 16:30
@ethe ethe force-pushed the feat/read-exact branch from d229e43 to 516357f Compare March 14, 2025 05:58
@ethe ethe closed this Mar 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants