mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-06 17:54:20 +01:00
This adds a "limbo_stress" tool for stress testing Limbo in non-deterministic way together with support code to run the tests under Antithesis (which makes them deterministic). The stress tester does not really do anything useful yet, this is just a step to make sure we can run tests under Antithesis.
17 lines
425 B
Rust
17 lines
425 B
Rust
use clap::{command, Parser};
|
|
|
|
#[derive(Parser)]
|
|
#[command(name = "limbo_stress")]
|
|
#[command(author, version, about, long_about = None)]
|
|
pub struct Opts {
|
|
#[clap(short = 't', long, help = "the number of threads", default_value_t = 8)]
|
|
pub nr_threads: usize,
|
|
#[clap(
|
|
short = 'i',
|
|
long,
|
|
help = "the number of iterations",
|
|
default_value_t = 1000
|
|
)]
|
|
pub nr_iterations: usize,
|
|
}
|