Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

jebrosen/async-file-benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

async-file-benchmark

⚠ WARNING: UNMAINTAINED PROJECT ⚠

This project is no longer maintained. In addition to the caveats listed below, it has not been updated for the latest versions of packages and has some known problems such as #6.

Preface

This benchmark should not be used as-is as a performance comparision between async-std and tokio. It was designed to highlight certain pathological cases and does not reflect a realistic or recommended usage pattern.

There are several issues with using this as a direct comparative benchmark:

  • The number of tasks and buffer size are unrealistic, and adjusting them can affect results dramatically.
  • It uses default configurations of both libraries. These default configurations might not actually be suitable for this workload, and even under default operating system configurations this benchmark will not run.

The benchmark is most useful for tracking changes in executors, e.g. "did change X really improve Y, as measured by this benchmark", and as a stress test.

Setup

You'll need a file.dat. For example, 256KiB of random data:

dd if=/dev/urandom of=file.dat count=256 bs=1024

You will probably need to raise your open files limit to run this:

ulimit -n unlimited

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages