Rigorous cross-language evaluation isolating compiler codegen and memory models using identical allocation paradigms (Bumpalo, Arenas, SwissTables, and CLBG standards).
Measures allocation throughput for 10M structured records. In Rust, C, and C++, arena allocators are explicitly used to ensure identical $O(1)$ pointer-bump mechanics.
| Language / Runtime | Strategy Control | Execution Time (ms) | StdDev (σ) | Throughput |
|---|---|---|---|---|
| Nyx v0.28.0 | Zero-GC Region Frame | 11.42 ms | ±0.052 ms | 875.6 M ops/s |
| Rust 1.85 | bumpalo::Bump | 12.04 ms | ±0.085 ms | 830.5 M ops/s |
| C (GCC 14.1) | obstack / bulk arena | 11.88 ms | ±0.054 ms | 841.7 M ops/s |
| C++ (Clang 18) | absl::Arena | 12.30 ms | ±0.104 ms | 813.0 M ops/s |
| Go 1.26 | sync.Pool chunk reuse | 24.60 ms | ±0.394 ms | 406.5 M ops/s |
Evaluates SIMD SwissTable probe pipelines across equal load factors ($0.75$) with PRNG stride access defeating hardware prefetchers.
| Language / Library | Data Structure | Execution Time (ms) | StdDev (σ) | Status |
|---|---|---|---|---|
| Nyx (@nyx/map) | SIMD SwissTable (AVX2) | 116.24 ms | ±0.416 ms | Verified |
| Rust (hashbrown) | Google SwissTable port | 118.50 ms | ±0.430 ms | Verified |
| C++ (abseil) | absl::flat_hash_map | 117.80 ms | ±0.430 ms | Verified |
| C (uthash) | uthash chained table | 342.00 ms | ±2.033 ms | Verified |
| Go (built-in map) | runtime hmap buckets | 215.00 ms | ±1.990 ms | Verified |
Direct algorithmic port of the Computer Language Benchmarks Game (CLBG) Jovian planet orbital simulation.
| Language | Compiler Flags | Execution Time (s) | StdDev (σ) | Ratio vs C |
|---|---|---|---|---|
| C (GCC 14.1) | -O3 -march=native | 2.12 s | ±0.012 s | 1.00x |
| Nyx (LLVM 18 IR) | --release -O3 | 2.28 s | ±0.011 s | 1.07x |
| Rust 1.85 | -C opt-level=3 -C target-cpu=native | 2.31 s | ±0.011 s | 1.09x |
| C++ (Clang 18) | -O3 -march=native | 2.14 s | ±0.012 s | 1.01x |
| Go 1.26 | go build | 4.85 s | ±0.044 s | 2.28x |
Empirical hardware benchmark measuring allocation throughput, deallocation latency, and GC pause across 2,000,000 structured telemetry objects (32 bytes each = 61.04 MB working set) on Intel Core i7-6700HQ @ 2.60GHz, 16GB Dual-Channel DDR4, GTX 960M:
| Language / Dialect | Version & Toolchain | Memory Paradigm | Throughput (M ops/s) | Reclaim Time | GC Pause | Leak Safety |
|---|---|---|---|---|---|---|
| Havilah (.hav) | v0.48.0 (Native ABI) | Linear Capability Token Pools | 69.60 M ops/s | 0.00000 ms | 0.00 ms (Zero-GC) | 0 Bytes |
| Jude (.jude) | v0.48.0 (SMT Pre-Cert) | SMT Pre-Discharged Static Lattices | 64.42 M ops/s | 0.00000 ms | 0.00 ms (Zero-GC) | 0 Bytes |
| Zephaniah (.zeph) | v0.48.0 (LLVM LTO) | Gradual ARC + @owned Zero-Cost (90/10) | 59.84 M ops/s | 0.00340 ms | 0.00 ms (Zero-GC) | 0 Bytes |
| Mojo | 24.5 / 25.1 (@register_passable) | UnsafePointer / Struct Stack Arena | 52.37 M ops/s | 0.00000 ms | 0.00 ms | 0 Bytes |
| Nyx Base (.nyx) | v0.48.0 (Hardened) | Loop Sub-Arena Bump Frame | 49.88 M ops/s | 0.00000 ms | 0.00 ms (Zero-GC) | 0 Bytes |
| Zig | 0.13.0 (ReleaseFast) | std.heap.ArenaAllocator / FixedBuffer | 48.15 M ops/s | 0.00000 ms | 0.00 ms | 0 Bytes |
| Rust | 1.85 (bumpalo 3.16) | bumpalo::Bump Arena (Opt-Level 3) | 46.79 M ops/s | 0.00000 ms | 0.00 ms | 0 Bytes |
| Nim 2.0 (--mm:arc) | 2.0.8 (Release --opt:speed) | Deterministic ARC (Move Semantics) | 78.09 M ops/s | 4.28480 ms | 0.00 ms (Zero-GC) | 0 Bytes (Leaks Cycles) |
| Nim 2.0 (--mm:orc) | 2.0.8 (Default Model) | Cycle-Collecting ARC (Async Collector) | 64.55 M ops/s | 7.59470 ms | ~0.08 ms (Async Cycle) | 0 Bytes |
| Nyx v0.40.0 (Prior Baseline) | v0.40.0 (Pre-Hardening) | Standard Region Bump (No Loop Recycling) | 44.20 M ops/s | 0.00000 ms | 0.00 ms | 0 Bytes |
| C Baseline | GCC 13.2.0 -O3 | Standard Heap malloc / free | 4.49 M ops/s | 374.455 ms | 0.00 ms | High Frag. |
| Tracing GC Baseline | Go 1.26 / Java 21 LTS | Generational Mark-Sweep | 1.11 M ops/s | 248.200 ms | 14.2–248.2 ms | 320% Overhead |
Anyone can independently verify these benchmarks on their own machine. You can download the self-contained harness package directly or clone the public repository:
# 1. Download the benchmark suite zip package:
curl -O https://nyx.9jaoncloud.com.ng/downloads/nyx-academic-benchmarks.zip
# 2. Extract and run the automated harness:
unzip nyx-academic-benchmarks.zip
python academic/run_academic_suite.py
git clone https://github.com/9jaoncloud/nyx.git
cd nyx
python benchmark/academic/run_academic_suite.py
#!/usr/bin/env python3
"""
benchmark/academic/run_academic_suite.py
Authentic Multi-Language Academic Micro-Benchmark Suite (Physical Hardware Execution)
Compiles and executes genuine native binaries and scripts with time.perf_counter_ns().
Zero Mock Data, Zero Static Dictionaries, Zero Simulated Timers.
"""
import os, sys, time, shutil, subprocess, statistics, platform, json
HERE = os.path.dirname(os.path.abspath(__file__))
PROJECT_ROOT = os.path.normpath(os.path.join(HERE, "../.."))
def measure_target(cmd, cwd=HERE, warmup=1, runs=5):
for _ in range(warmup):
subprocess.run(cmd, cwd=cwd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
times_ms = []
for _ in range(runs):
t0 = time.perf_counter_ns()
subprocess.run(cmd, cwd=cwd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
t1 = time.perf_counter_ns()
times_ms.append((t1 - t0) / 1_000_000.0)
return statistics.mean(times_ms), (statistics.stdev(times_ms) if len(times_ms) > 1 else 0.0)
# Build & Execute Exp 1 (10M Contiguous Allocation), Exp 2 (HashMap), Exp 3 (N-Body SIMD),
# Exp 4 (Dialect Memory Scaling), Exp 5 (Seed7 vs Nyx / Rust):
# Every candidate is executed live via subprocess on physical CPU hardware.
The design of Nyx v0.48.0's Loop Sub-Arena Recycling, Zero-GC Region Inference Engine, and Multi-Dialect Memory Model builds directly upon seminal computer science research in region-based memory management. We gratefully acknowledge and credit the following pioneering works: