WebGPU Bench

Distributed Evolution via WebRTC

Browser tabs serve as evolutionary islands, exchanging elite genomes peer-to-peer. GPU kernel fusion + WebRTC data channels. Zero install.

Open SourceBrowser-to-Browser Distributed Evolution
28.8%
fitness improvement (4 P2P islands, shared GPU)
14.6%
improvement on independent RTX 3090 GPUs
97%
performance maintained at 50% Byzantine nodes
20 KB/s
total bandwidth for 4-node mesh
10×
speed gap bridged by elite injection (iPhone vs Mac)
82%
of full-mesh benefit with k4-regular topology (74% fewer edges)
Live Demos
FeaturedKernel Fusion + P2P
🐦

Flappy Evolution

50 neural networks learn to play Flappy Bird. GPU evaluates 4,096 birds per dispatch via fused kernel.

4,096
Population
22
NN params
88 B
Genome size
Kernel FusionWebRTC P2POpenAI ES
Launch DemoOpen in 2+ tabs for P2P
📊

P2P Rastrigin Scaling

2,000-dimensional multimodal optimization. Open multiple tabs to form an island-model swarm via WebRTC.

2,000
Dimensions
4,096
Population
+28.8%
Improvement
Island ModelWebRTC P2PDiversity Injection
Launch DemoOpen in 2+ tabs for P2P
🧬

PETase Enzyme Evolution

Distributed island-model evolution of PETase plastic-degrading enzyme. Islands specialize on stability vs activity.

65
Evolvable positions
4
Fitness components
3
Islands
Protein DesignMulti-ObjectiveIsland Model
Launch DemoOpen in 2+ tabs for P2P
💉

Multi-Allele Neoantigen

Cancer neoantigen design across HLA alleles. Each island evolves peptides for a different MHC-I allele.

3
HLA alleles
9-mer
Peptide length
Auto
Anchor discovery
Cancer ResearchMulti-AlleleIsland Model
Launch DemoOpen in 2+ tabs for P2P

How Distributed Evolution Works

🖥️

1. GPU Evolution

Each browser tab runs a fused WebGPU kernel that evaluates 4,096 neural networks in a single GPU dispatch. No per-step overhead.

🔗

2. WebRTC Discovery

Tabs discover each other via a 130-line signaling relay. WebRTC data channels form a direct P2P mesh. No server after handshake.

🧬

3. Elite Exchange

Best genomes flow between islands at 88 bytes each. Different islands explore different fitness landscapes. Diversity injection beats isolation by 28.8%.

Architecture

Tab 1 (GPU)◄──WebRTC──►Tab 2 (GPU)
│ genome exchange │
Signaling Relay(handshake only, ~130 LOC)

Part of the kernelfusion.dev research project. Source code on GitHub.