xinnks / sqlite-batch-statements

Testing different SQLite practices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQLite-batch-statements

Benchmarking regular statements and batches in SQLite.

Running benchmarks

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.

Using the rust SDK

cargo run --example <example-name> # e.g batch, batch_remote, stmt, stmt_remote

Using the JS/TS SDK

Install npm dependencies by running:

npm install

Run individual tests:

npm run batch # batch, batch:remote, stmt, stmt:remote 

Testing the constraints of interactive transactions

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

About

Testing different SQLite practices


Languages

Language:TypeScript 99.5%Language:Rust 0.5%