Featured Developer Sponsor • Zero-Token Protection
Zero-Knowledge Proofs (ZKP)
Plonky3 • SP1 • RISC Zero
Goldilocks vs BabyBear
Plonky3 Goldilocks & BabyBear Prime Field Studio
Simulate small prime field arithmetic for next-generation ZK-STARKs and zkVMs. Compare 64-bit Goldilocks, 31-bit BabyBear, and KoalaBear fields against classical 256-bit curves. Benchmark NTT throughput, extension field expansion, and SIMD vector lane efficiency.
1. Prime Field & Hardware Acceleration
2^20 (1M)
2. Extension Field & Security Level
2-Adicity = 27 (Supports power-of-two domain sizes up to 2^27 ≈ 134M rows).
Field Arithmetic Throughput & NTT Performance
~18.2x Faster than BN254NTT Operations / Sec
420 Mops/s
2.4 ms per 2^20 rows
SIMD Vector Parallelism
16 Elements / Cycle
AVX-512 full vector utilization
Memory Bandwidth Demand
4.0 MB / M-rows
vs 32 MB for BN254
Conjectured Soundness
124 Bits
Via F_(p^4) Extension Field
Production Implementation Code
Architectural Comparison: ZK Prime Fields
| Field | Prime Modulus p | Bit Width | AVX-512 Lanes | Proving Frameworks |
|---|---|---|---|---|
| BabyBear | 2^31 - 2^27 + 1 | 31 bits | 16 elements | SP1 (Succinct), RISC Zero, Plonky3 |
| KoalaBear | 2^31 - 2^24 + 1 | 31 bits | 16 elements | Plonky3, Polygon Labs |
| Goldilocks | 2^64 - 2^32 + 1 | 64 bits | 8 elements | Polygon Zero, Polygon Miden |
| BN254 (alt_bn128) | ~2^254 (Pairing-friendly) | 254 bits | 2 elements | Groth16, Snarkjs, Aztec Barretenberg |
Sponsored Utility
While You're Here
Sponsored Recommendations
Advertisement