https://github.com/single9/rust-acitx-db-benchmarks
https://github.com/single9/rust-acitx-db-benchmarks
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/single9/rust-acitx-db-benchmarks
- Owner: single9
- Created: 2022-11-16T22:21:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-14T06:04:10.000Z (almost 2 years ago)
- Last Synced: 2025-01-11T14:44:57.967Z (4 months ago)
- Language: Rust
- Size: 112 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust Pratice 1
## Installation
### Ubuntu
sudo apt-get install libpq-dev
### Build
cargo build --release
## Setup
### Database
1. Copy `.env.sample` to `.env`.
2. Run the command below to initialize the databasesqlx database create
sqlx migrate run### Run API Server
# Actix-web + sqlx
cargo run --release --bin api# Actix-web + diesel
cargo run --release --bin api_diesel## Benchmark
Using [k6](https://github.com/grafana/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