Files
Mazdak Farrokhzad 50d58a2858 Add modules/benchmarks-ts (#3408)
# Description of Changes

Adds `modules/benchmarks-ts`.

# API and ABI breaking changes

None

# Expected complexity level and risk

2?

# Testing

This is a test.

---------

Co-authored-by: Phoebe Goldman <phoebe@goldman-tribe.org>
Co-authored-by: Noa <coolreader18@gmail.com>
2025-10-24 16:34:13 +00:00
..
2025-10-24 16:34:13 +00:00
2023-08-01 23:16:37 +02:00
2025-02-28 14:32:59 +00:00
2023-08-01 23:16:37 +02:00
2025-08-22 19:36:47 +00:00

benchmarks Rust Modules

This provides the various modules used for benchmarking SpacetimeDB, with the crate bench.

Note: Also mirrored as a C# version at modules/benchmarks-cs, so must be kept in sync.

Benchmarks

circles.rs

Implements a smaller variation of the Blackholio game.

Circles are spawned and then queried to evaluate CROSS JOIN performance.

ia_loop.rs

Implements a simplified version of the ia loop from BitCraft.

This benchmark spawns a large number of entities in a world and queries them to measure UPDATE performance, running a single loop of the enemy AI.

synthetic.rs

Contains various synthetic benchmarks designed to test database performance. These benchmarks involve tables with different type combinations and evaluate INSERT, UPDATE, DELETE, and SELECT operations in both simple and bulk scenarios.

How to Run

For detailed instructions on running the benchmarks, refer to the benchmarks README.