jebrosen / async-file-benchmark Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Hey, I have just swapped the order of executions (async-std goes first and tokio is second):
runtime time per
async-std 6.134
tokio 3.256
async-std is now twice as slow. Yet, when I run it in the order it is in this repo:
runtime time per
tokio 4.094
async-std 1.138
I have isolated tokio and async-std (commented away one of the two) and run separately:
runtime time per
tokio 4.026
runtime time per
async-std 5.345
I have even caught an outlier once with async-std:
runtime time per
async-std 8.808
My environment:
Running on OSX 10.15.1, initially tests were failing:
thread 'main' panicked at 'failed to time: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/libcore/result.rs:1165:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
after creating file.dat via touch file.dat
tests failing complaining on too manu open files. I had to change system parameters to fix that:
ulimit -S -n 10000
Due to the coop system, this is very slow on Tokio due to this issue. The issue was fixed for join_all
, but not try_join_all
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.