- multithread (threadpool): on branch
master
- async (tokio): on branch
tokio
- High concurrency (as shown in section
Performance Summary
) - multiply methods supported(
POST
,GET
), along with various services(echo, file IO, etc.) - modular architecture (as abstracted into
request
andresponse
mods)
-
GET
-
POST
/files
: create a file using body as its content, get 201 when succeeded, 500 when failed
device: Laptop
Num of thread: 10
method: GET
serving endpoint: http://localhost:4321/
concurrency: 20,000
![thread_pool-20000](https://private-user-images.githubusercontent.com/58029489/280234417-f7932ccd-942d-4965-9303-6348c29f2e32.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5MTgyMTQsIm5iZiI6MTcyMzkxNzkxNCwicGF0aCI6Ii81ODAyOTQ4OS8yODAyMzQ0MTctZjc5MzJjY2QtOTQyZC00OTY1LTkzMDMtNjM0OGMyOWYyZTMyLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDE4MDUxNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk5NDVkNTljMzFiNDk4Mjg1NTNmMDdkYTMwYzYyNjU2YTc4MWJlOTY3YWViMWZjZjRjN2U2NDJlMDdlMTRmNTImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.zVNQBEBDBNpX_aiS1sOwnhLuMrPiyWcf2Wip2UX7Utc)
CodeCrafters.io: this project starts from one of their their chanllenging and scrupulous challenges.
Rust Programming Language: most intelligent compiler ever!
oha: its well designed tui and function made testing less upset