docs / benchmarks / rust

Benchmarks index
  1. Overview

kernel-startup

  1. Kernel time-to-first-result
  2. Where cold-start time goes

rust

  1. Rust JSON benchmark (cross-language comparison)

Rust JSON benchmark (cross-language comparison)

serde_json + simd-json vs Cajeta’s Json.parse<T> binding, on the standard simdjson corpus (/tmp/jsonbench/{twitter,citm_catalog,canada}.json).

RUSTFLAGS="-C target-cpu=native" cargo build --release
./target/release/rustjson-bench

Methodology mirrors bench/src/bench/BindBench.cajeta: peak-of-batches MB/s, and a copy-only baseline is subtracted for simd-json (it mutates its input in place). The apples-to-apples row for Cajeta’s skip-all parse<BBEmpty> is serde_json’s IgnoredAny (structural skip-all). Results table: docs/specification/codec/json/Json.md.

Source: bench/rust/README.md · 1 min read · 53 words