Benchmarking regular statements and batches in SQLite.
Important
To perform remote tests "_remote" for Rust and ":remote" for TS, make sure you
rename the .env.example
file to .env
and populate it with the credentials
of a Turso database.
cargo run --example <example-name> # e.g batch, batch_remote, stmt, stmt_remote
Install npm dependencies by running:
npm install
Run individual tests:
npm run batch # batch, batch:remote, stmt, stmt:remote
Run interactive transaction:
npm run antipat:interactive
Then, pass a value >10000 or time in miliseconds that's enough for you to run the proceeding 👇 example.
While the above interactive transaction is ongoing, run the following command:
npm run antipat:regular