Repository navigation
Add xor_bench example (stateless XOR benchmark) - #74
Merged
Merged
Conversation
Runs XOR N times in parallel and prints a SUMMARY line with solved runs, median/mean generations, champion size, species and robustness checks (same order, reset-each, reversed order). Modes: default, init, initb, uncon; keys: addc, addn, wpow, winit, wrate, thr, mutp, tog, bias, tau, pop, reset, target. Reference bench A: xor_bench 50 500 init reset=1. ref #56 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Qué cambia
examples/xor_bench.rs: banco XOR de la auditoría, limpio (fmt/clippy sin avisos propios). Modosdefault,init,initb,uncon; clavesaddc addn wpow winit wrate thr mutp tog bias tau pop reset target;BENCH_THREADSpara el paralelismo. Imprime una línea por ejecución y al final la líneaSUMMARY(resueltas, mediana/media de generaciones, tamaño del campeón, especies máx./finales, robustez del campeón con reset por patrón y en orden inverso). Argumentos erróneos: mensaje de uso y exit 2 en vez de panic.Cargo.toml: registra el ejemploxor_bench.No toca
src/.Verificación (rust:1-slim vía contenedor)
cargo fmt -- --check: OKcargo clippy --release --all-targets: ningún aviso enexamples/xor_bench.rs(los existentes son los de develop)cargo build --release --examples: OKcargo test --release: 26/26 unitarios OK;tests/rustneat_tests.rs::network_should_be_able_to_solve_xor_classificationFALLA, como ya falla en develop (lo arregla Ejemplo y test de XOR honestos #70); no lo toca este cambio.Criterio de cierre (línea base)
cargo run --release --example xor_bench 50 500 init reset=1cargo run --release --example xor_bench 50 1000 defaultBanco A: 0/50, lo mismo que en el informe.
ref #56
Parte de la épica #55
🤖 Generated with Claude Code