mongo-python-driver/test/performance
Jeffrey A. Clark c4cdf2c186 Add Rust comparison tests for standard BSON benchmarks
Added Rust vs C comparison versions for all standard BSON micro-benchmarks:
- Flat encoding/decoding (TestRustFlat*)
- Deep encoding/decoding (TestRustDeep*)
- Full encoding/decoding (TestRustFull*)

These tests use the same test data as the standard benchmarks but
explicitly compare C vs Rust implementations. Each benchmark has two
versions:
- *C: Uses C extension (implementation = 'c')
- *Rust: Uses Rust extension (implementation = 'rust')

The RustComparisonTest base class handles switching between
implementations by setting/unsetting PYMONGO_USE_RUST environment
variable and reloading the bson module.

This provides comprehensive performance comparison data between the
C and Rust BSON implementations across all standard benchmark datasets.
2026-05-06 21:58:34 -04:00
..
async_perf_test.py PYTHON-5683: Spike: Investigate using Rust for Extension Modules 2026-05-06 21:58:34 -04:00
perf_test.py Add Rust comparison tests for standard BSON benchmarks 2026-05-06 21:58:34 -04:00