sudo apt-get install libpq-dev
cargo build --release
-
Copy
.env.sample
to.env
. -
Run the command below to initialize the database
sqlx database create sqlx migrate run
# Actix-web + sqlx
cargo run --release --bin api
# Actix-web + diesel
cargo run --release --bin api_diesel
Using k6.
k6 run --vus 100 --iterations 10000 benchmark/create_todo.js
k6 run --vus 100 --iterations 10000 benchmark/get_todo_list.js
k6 run --vus 100 --iterations 10000 benchmark/get_todo.js