| Crates.io | trueno-db |
| lib.rs | trueno-db |
| version | 0.3.13 |
| created_at | 2025-11-19 21:46:40.933501+00 |
| updated_at | 2026-01-25 15:03:02.93691+00 |
| description | GPU-first embedded analytics database with SIMD fallback and SQL query interface |
| homepage | |
| repository | https://github.com/paiml/trueno-db |
| max_upload_size | |
| id | 1940811 |
| size | 1,188,545 |
GPU-first embedded analytics database with graceful degradation: GPU → SIMD → Scalar
[dependencies]
trueno-db = "0.3"
# Optional: GPU acceleration
trueno-db = { version = "0.3", features = ["gpu"] }
use trueno_db::query::{QueryEngine, QueryExecutor};
use trueno_db::storage::StorageEngine;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let storage = StorageEngine::load_parquet("data/events.parquet")?;
let engine = QueryEngine::new();
let executor = QueryExecutor::new();
let plan = engine.parse(
"SELECT COUNT(*), SUM(value), AVG(value) FROM events WHERE value > 100"
)?;
let result = executor.execute(&plan, &storage)?;
Ok(())
}
SIMD Aggregation (1M rows, AMD Threadripper 7960X):
| Operation | SIMD | Scalar | Speedup |
|---|---|---|---|
| SUM | 228µs | 634µs | 2.78x |
| MIN | 228µs | 1,048µs | 4.60x |
| MAX | 228µs | 257µs | 1.13x |
| AVG | 228µs | 634µs | 2.78x |
cargo run --example sql_query_interface --release
cargo run --example benchmark_shootout --release
cargo run --example gaming_leaderboards --release
cargo run --example gpu_aggregations --features gpu --release
make build # Build
make test # Run tests
make quality-gate # lint + test + coverage
make bench-comparison
MIT