Files
consensus/benchmarks/results/c_benchmark_20251106.txt
zeekay deec6064cc docs: Create comprehensive documentation site with Fumadocs + @hanzo/ui
✨ Features:
- Dark mode by default with Lux branding
- Multi-language SDK documentation (Go, C, Rust, Python, C++)
- Real benchmark results integration
- @hanzo/ui design system
- Fumadocs MDX framework
- Next.js 16 with App Router

📚 Documentation:
- Homepage with quick start
- SDK overview with feature matrix
- Go SDK complete API reference
- C SDK with 33/33 test results
- Performance benchmarks page
- Responsive sidebar with search

🎨 Branding:
- Lux color palette (lux-50 to lux-950)
- Custom logo with Zap icon
- Gradient banner for v1.21.0
- Dark theme optimized

🔧 Technical:
- TypeScript throughout
- Tailwind CSS with custom config
- Rehype Pretty Code for syntax
- React 19 + Next.js 16
- Port 3001 for docs server

📊 Benchmarks:
- Go: 1.7μs decisions, 179M sigmoid ops/sec
- C: 33/33 tests passing, 1M+ blocks/sec
- Real results from 2025-11-06

Run: cd docs && pnpm dev
Visit: http://localhost:3001
2025-11-06 13:51:19 -08:00

2.3 KiB

=====================================
=== LUX CONSENSUS C TEST SUITE ===
=====================================
 
 
=== INITIALIZATION: Library Lifecycle ===
[PASS] Initialize library cycle 0
[PASS] Cleanup library cycle 0
[PASS] Initialize library cycle 1
[PASS] Cleanup library cycle 1
[PASS] Initialize library cycle 2
[PASS] Cleanup library cycle 2
[PASS] Error string for SUCCESS
[PASS] Error string for INVALID_PARAMS
 
=== ENGINE: Creation and Configuration ===
[PASS] Create engine with config 0
[PASS] Create engine with config 1
[PASS] Create engine with config 2
 
=== BLOCKS: Add, Query, and Hierarchy ===
[PASS] Add block 1
[PASS] Add block 2
[PASS] Add duplicate block (idempotent)
[PASS] Add block with data
 
=== VOTING: Preference and Confidence ===
[PASS] Process preference vote 0
[PASS] Process preference vote 1
[PASS] Process preference vote 2
[PASS] Process confidence vote 3
[PASS] Process confidence vote 4
[PASS] Process confidence vote 5
[PASS] Vote count tracking
 
=== ACCEPTANCE: Decision Thresholds ===
[PASS] Block A accepted after threshold
[PASS] Block B not accepted
 
=== PREFERENCE: Preferred Block Selection ===
[PASS] Initial preference is genesis
[PASS] Preference updated to accepted block
 
=== ENGINE TYPES: Chain, DAG, PQ ===
[PASS] Create Chain engine
[PASS] Engine type string for Chain
[PASS] Create DAG engine
[PASS] Engine type string for DAG
[PASS] Create PQ engine
[PASS] Engine type string for PQ
 
=== PERFORMANCE: Throughput and Latency ===
[PASS] Add 1000 blocks in < 1 second (took 0.000s)
Time: 0.000 seconds
 
=====================================
=== TEST SUMMARY ===
=====================================
Total Tests: 33
Passed: 33
Failed: 0
Skipped: 0
 
🎉 ALL TESTS PASSED! 100% SUCCESS RATE