Skip to content

Benchmark — Rust

Source: apps/rust/benchmark/src/lib.rs | WASM Demo{:target="_blank"}

Measures latency, throughput, and memory usage of all RTOS abstractions.

Language-specific patterns

This example uses the ove Rust crate with no_std support. Error handling uses Result<(), ove::Error>. Shared state uses atomics where possible. The ove::shared! macro provides safe static initialization.

See the overview for architecture details and the full API list.

How to build

# Native POSIX
make host.posix.benchmark_rust
make configure && make download && make && make run

# WASM (browser)
make wasm.posix.benchmark_rust
make configure && make download && make && make run