INDEX
📄 001-fao56-penman-monteith📄 002-soil-sensor-calibration📄 004-fao56-water-balance📄 006-richards-equation📄 007-biochar-adsorption📄 008-yield-response-stewart📄 009-fao56-dual-kc📄 01-16s-pipeline-validation📄 01-composition-validation📄 01-science-validation📄 01-semf-binding-energy📄 017-et0-sensitivity-analysis📄 018-michigan-crop-water-atlas📄 019-priestley-taylor-et0📄 02-benchmark-comparison📄 02-benchmark-python-vs-rust📄 02-yukawa-screening📄 021-thornthwaite-et0📄 023-pedotransfer-saxton-rawls📄 03-ecosystem-evidence📄 03-experiment-evidence📄 03-gonzales-deep-dive📄 03-paper-reproductions📄 03-sarkas-yukawa-md📄 031-hargreaves-samani-et0📄 033-makkink-et0📄 034-turc-et0📄 035-hamon-pet📄 04-cross-spring-connections📄 04-ttm-laser-plasma📄 049-blaney-criddle-et0📄 05-btsp-security-deep-dive📄 05-domain-deep-dive📄 05-measurement-science-deep-dive📄 05-physics-deep-dive📄 05-primal-composition-patterns📄 05-soil-anderson-deep-dive📄 05-stanton-murillo-transport📄 050-scs-curve-number📄 051-green-ampt-infiltration📄 06-surrogate-learning📄 07-quenched-qcd📄 08-dynamical-fermions📄 081-spi-drought-index📄 09-abelian-higgs📄 10-spectral-theory📄 11-gradient-flow📄 12-plasma-dielectric📄 13-ltee-anderson-fitness📄 anderson-deep-sea📄 cahill-smallwood-algae📄 exp-001-sensor-noise📄 exp-002-observation-gap📄 exp-003-error-propagation📄 exp-004-sequencing-noise📄 exp-005-seismic📄 exp-006-signal-specificity📄 exp-007-rawr-resampling📄 exp-008-anderson-localization📄 exp-009-quasiperiodic📄 exp-010-bistable-switching📄 exp-011-multisignal-qs📄 exp-012-spin-transport📄 exp-013-resampling-convergence📄 exp-014-drift-selection📄 exp-015-uncertainty-bridge📄 exp-016-rare-biosphere📄 exp-017-quasispecies-threshold📄 exp-018-band-edge📄 exp-019-jackknife-estimation📄 exp-020-freeze-out-inverse📄 exp-021-spectral-recon📄 exp-022-et0-anderson-propagation📄 exp-023-notill-sampling📄 exp-024-aggregate-stability📄 exp-025-precision-drift📄 exp-026-size-convergence📄 exp-027-vendor-parity📄 exp-028-npu-anderson📄 exp-029-et0-methods

GPU-Accelerated DADA2 Benchmark: Rust vs Python — 16S Pipeline Performance

Head-to-head benchmark of DADA2-style 16S rRNA pipeline: Python/NumPy vs Rust CPU vs GPU-accelerated WGSL on consumer hardware. Reproducible results with commodity GPUs.

GPU-Accelerated DADA2 Benchmark: Rust vs Python

This page benchmarks GPU-accelerated 16S rRNA pipeline performance against the standard Python/Galaxy DADA2 stack. All results are reproducible on commodity hardware (RTX 4070, no CUDA required).

Benchmark data from three tiers of the wetSpring pipeline:

  1. Python (numpy/scipy) — industry-standard baseline
  2. Rust (sovereign CPU) — wetSpring barracuda crate
  3. GPU (barraCuda WGSL) — consumer RTX via ToadStool dispatch

All benchmarks run on ironGate (i9-14900K, 96 GB DDR5, RTX 4070 / RTX 3090).

Data sources: benchmarks/results/python_baseline_latest.json, experiments/results/015_pipeline_benchmark/, experiments/results/016_gpu_pipeline_parity/


For other springs: load your own benchmark JSONs. The Python baseline script (scripts/python_baseline.py) generates the same JSON schema for any domain.

import json
from pathlib import Path

import matplotlib
# matplotlib backend set by environment
import matplotlib.pyplot as plt
import numpy as np

RESULTS = Path('..') / 'experiments' / 'results'
BENCH = Path('..') / 'benchmarks' / 'results'

def load(path):
    with open(path) as f:
        return json.load(f)

baseline = load(BENCH / 'python_baseline_latest.json')
pipeline = load(RESULTS / '015_pipeline_benchmark' / 'benchmark_results.json')
gpu_parity = load(RESULTS / '016_gpu_pipeline_parity' / 'gpu_parity_results.json')

hw = baseline['hardware']
print(f'Hardware: {hw["cpu_model"]}')
print(f'  CPU cores: {hw["cpu_cores"]}, RAM: {hw["ram_total_mb"]:,} MB')
print(f'  GPU: {hw.get("gpu_name", "N/A")}, VRAM: {hw.get("gpu_vram_mb", 0):,} MB')
print(f'  OS kernel: {hw["os_kernel"]}')
print(f'\nBenchmark timestamp: {baseline["timestamp"]}')
print(f'Python phases: {len(baseline["phases"])}')

Python Baseline Timings

Per-operation timings from Python/NumPy/SciPy across diversity metrics, distance matrices, and ordination at varying input sizes.

phases = baseline['phases']

# Group by operation type
groups = {}
for p in phases:
    op = p['phase'].rsplit(' N=', 1)[0] if ' N=' in p['phase'] else p['phase'].rsplit(' ', 1)[0]
    groups.setdefault(op, []).append(p)

fig, axes = plt.subplots(2, 2, figsize=(14, 10))

# Shannon entropy scaling
shannon = [p for p in phases if p['phase'].startswith('Shannon entropy')]
if shannon:
    ax = axes[0, 0]
    sizes = [int(p['phase'].split('N=')[1]) for p in shannon]
    times = [p['per_eval_us'] for p in shannon]
    ax.loglog(sizes, times, 'o-', color='#2ecc71', linewidth=2, markersize=8)
    ax.set_xlabel('Input size (N)')
    ax.set_ylabel('Time per eval (\u00b5s)')
    ax.set_title('Shannon Entropy — Python Scaling')
    ax.grid(True, alpha=0.3)

# Bray-Curtis scaling
bray = [p for p in phases if p['phase'].startswith('Bray-Curtis')]
if bray:
    ax = axes[0, 1]
    labels = [p['phase'].split(' N=')[0].replace('Bray-Curtis ', '') for p in bray]
    times = [p['per_eval_us'] for p in bray]
    ax.bar(labels, times, color='#e74c3c')
    ax.set_ylabel('Time per eval (\u00b5s)')
    ax.set_title('Bray-Curtis Distance — Python')
    ax.set_yscale('log')

# Cosine similarity scaling
cosine = [p for p in phases if p['phase'].startswith('Cosine')]
if cosine:
    ax = axes[1, 0]
    labels = [p['phase'].split(' N=')[0].replace('Cosine ', '') for p in cosine]
    times = [p['per_eval_us'] for p in cosine]
    ax.bar(labels, times, color='#3498db')
    ax.set_ylabel('Time per eval (\u00b5s)')
    ax.set_title('Cosine Similarity — Python')
    ax.set_yscale('log')

# Memory usage across all phases
ax = axes[1, 1]
mem = [p['peak_rss_mb'] for p in phases]
ax.plot(range(len(mem)), mem, 'o-', color='#9b59b6', markersize=4)
ax.set_xlabel('Phase index')
ax.set_ylabel('Peak RSS (MB)')
ax.set_title('Memory Usage Across Phases')
ax.grid(True, alpha=0.3)

plt.suptitle('Python/NumPy/SciPy Baseline Performance', fontsize=14, fontweight='bold')
plt.tight_layout()
plt.savefig('/tmp/wetspring_02_python_baseline.png', dpi=150, bbox_inches='tight')
plt.show()

Rust vs Galaxy Pipeline

Full 16S pipeline comparison: sovereign Rust vs Galaxy/QIIME2. 22 samples, 3.9M reads through the complete pipeline.

rust = pipeline['rust']
galaxy_data = pipeline['galaxy']

print(f'Pipeline: {pipeline["benchmark"]}')
print(f'Date: {pipeline["date"]}')
print(f'Hardware: {pipeline["hardware"]}')
print()

print('Rust Pipeline:')
print(f'  Samples: {rust["samples"]}')
print(f'  Total reads: {rust["total_reads"]:,}')
print(f'  ASVs: {rust["total_asvs"]:,}')
print(f'  Wall time: {rust["wall_total_ms"]/1000:.1f}s')
print(f'  Energy: {rust["energy_kwh"]:.6f} kWh')
print()

print('Galaxy/QIIME2 Pipeline:')
for exp_key in ['exp001', 'exp002']:
    if exp_key in galaxy_data:
        exp = galaxy_data[exp_key]
        print(f'  {exp_key}: {exp["samples"]} samples, {exp["reads"]:,} reads, {exp["total_s"]}s')
print(f'  Per sample: {galaxy_data["per_sample_s"]}s')
print(f'  Energy: {galaxy_data["energy_kwh"]:.6f} kWh')

fig, axes = plt.subplots(1, 3, figsize=(15, 5))

# Per-stage timing
ax = axes[0]
stages = ['FASTQ Parse', 'QC Filter', 'Dereplic.', 'DADA2', 'Chimera', 'Taxonomy', 'Diversity']
rust_times = [rust['fastq_parse_ms'], rust['quality_filter_ms'], rust['dereplication_ms'],
              rust['dada2_denoise_ms'], rust['chimera_detect_ms'], rust['taxonomy_classify_ms'],
              rust['diversity_calc_ms']]
rust_times_s = [t/1000 for t in rust_times]
bars = ax.barh(stages, rust_times_s, color='#e67e22')
ax.set_xlabel('Time (seconds)')
ax.set_title('Rust Pipeline — Per Stage')
ax.set_xscale('log')

# Energy comparison
ax = axes[1]
ax.bar(['Rust', 'Galaxy'], [rust['energy_kwh'], galaxy_data['energy_kwh']],
       color=['#e67e22', '#3498db'])
ax.set_ylabel('Energy (kWh)')
ax.set_title('Energy Consumption')

# Throughput
ax = axes[2]
ax.bar(['Rust\n(per sample)', 'Galaxy\n(per sample)'],
       [rust['per_sample_s'], galaxy_data['per_sample_s']],
       color=['#e67e22', '#3498db'])
ax.set_ylabel('Seconds per sample')
ax.set_title('Throughput Comparison')

plt.suptitle('Rust vs Galaxy/QIIME2 — Full Pipeline', fontsize=14, fontweight='bold')
plt.tight_layout()
plt.savefig('/tmp/wetspring_02_rust_vs_galaxy.png', dpi=150, bbox_inches='tight')
plt.show()

GPU Acceleration

CPU vs GPU parity on the 16S math pipeline. The GPU path delegates to barraCuda via ToadStool — zero local WGSL. GPU vs single-threaded CPU Rust for spectral cosine matching. Note: this compares GPU-parallel to CPU-serial — the multiplier reflects parallelism, not algorithmic improvement.

print(f'Experiment: {gpu_parity["experiment"]}')
print(f'Tolerance: {gpu_parity["tolerance"]}')
print(f'Samples: {gpu_parity["samples_processed"]}')
print()
print(f'CPU total: {gpu_parity["cpu_total_ms"]:.1f} ms')
print(f'GPU total: {gpu_parity["gpu_total_ms"]:.1f} ms')
print(f'Speedup:   {gpu_parity["speedup"]:.2f}x')
print()
print('Note: This is the pipeline-level speedup. Individual operations')
print('like spectral cosine matching show 1,077x on larger datasets.')

fig, ax = plt.subplots(figsize=(8, 5))
bars = ax.bar(['CPU (Rust)', 'GPU (barraCuda)'],
              [gpu_parity['cpu_total_ms'], gpu_parity['gpu_total_ms']],
              color=['#e67e22', '#2ecc71'])
ax.set_ylabel('Total time (ms)')
ax.set_title(f'CPU vs GPU — {gpu_parity["speedup"]:.1f}x Pipeline Speedup\n'
             f'({gpu_parity["samples_processed"]} samples, tolerance={gpu_parity["tolerance"]})')
for bar, val in zip(bars, [gpu_parity['cpu_total_ms'], gpu_parity['gpu_total_ms']]):
    ax.text(bar.get_x() + bar.get_width()/2, bar.get_height() + 50,
            f'{val:.0f} ms', ha='center', va='bottom', fontsize=12)
plt.tight_layout()
plt.savefig('/tmp/wetspring_02_gpu_speedup.png', dpi=150, bbox_inches='tight')
plt.show()

Summary

TierSubstratePipeline TimeEnergyParity
Pythonnumpy/scipybaselinebaselinereference
Rust CPUwetSpring barracudavaries by stagemeasuredmachine epsilon
GPUbarraCuda WGSL via ToadStool2.19x pipeline, 1,077x spectrallowertolerance 1e-6

The three-tier validation pattern (Python baseline -> Rust parity -> GPU acceleration) was pioneered in wetSpring and adopted across all 9 springs.



Reproduce It

git clone https://github.com/syntheticChemistry/wetSpring && cd wetSpring
cargo test --workspace          # all tests pass
cargo run --release --bin validate  # exit 0 = pass

Hardware used: i9-14900K, 96 GB DDR5, NVIDIA RTX 4070 (Vulkan, no CUDA SDK)
Dataset: NCBI SRA PRJNA488170 (11.9M paired-end 16S reads)
Date: July 2026
Author: ecoPrimal (ORCID 0009-0004-2141-0321)

Limitations

  • GPU speedups are workload-dependent; some stages (FASTQ parsing, I/O-bound) show no GPU benefit
  • Tested on NVIDIA RTX 4070 and RTX 3090; AMD and Intel GPU validation is in progress
  • The pipeline reproduces DADA2 results but does not wrap the R DADA2 package — it is a clean-room Rust implementation
  • No GUI; all interaction is via CLI and JSON output

Source: syntheticChemistry/wetSpring | GPU pipeline: Cross-vendor f64 GPU computing | Full validation: Self-hosted 16S bioinformatics

🔥 The mirror asks back — what did you see?

Anonymous. No names, no IPs, no sessions. Just words and the shape they make.

CLUTCH · the game

Investigation of the public record. Pages stay on detroit. clutch ↗