Skip to content

single9/rust-acitx-db-benchmarks

Repository files navigation

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 database

    sqlx 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.

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published