Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matklad/10k_linux_threads
https://github.com/matklad/10k_linux_threads
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/matklad/10k_linux_threads
- Owner: matklad
- Created: 2021-03-11T10:35:23.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-03-13T09:32:56.000Z (over 3 years ago)
- Last Synced: 2024-08-14T10:15:53.116Z (3 months ago)
- Language: Rust
- Size: 3.91 KB
- Stars: 13
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
Creating 10_000 threads on Linux
```
λ rustc main.rs -C opt-level=3 && ./t ./main
real 10.35s
user 5.14s
sys 16.04s
rss 94628kλ go build main.go && ./t ./main
real 10.92s
user 13.00s
sys 0.50s
rss 34612kλ cargo build -q --release && ./t ./target/release/main --pin-to-core
real 10.35s
user 3.00s
sys 8.94s
rss 94916k
```See [this post](https://matklad.github.io/2021/03/12/goroutines-are-not-significantly-lighter-than-threads.html) for discussion.