Riapplica la fase 5 di aKode (86e7c72e) sulla base ripulita:
- crate codex-* -> akode-*, codex-rs -> akode-rs, codex-cli -> akode-cli, binario e ausiliari akode;
- ~/.codex -> ~/.akode, CODEX_HOME -> AKODE_HOME, variabili CODEX_* -> AKODE_*, .codex/ -> .akode/ di progetto;
nessun fallback a ~/.codex o a CODEX_*;
- testi per l'utente "Codex" -> "aKode"; testi verso il modello e istruzioni di sistema invariati;
- snapshot insta rinominati (non ancora rigenerati).
I conflitti con la base ripulita sono stati risolti riapplicando la rinomina ai file senza le
funzioni di imeAI (script di mappa dei token per file).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
27 lines
806 B
Rust
27 lines
806 B
Rust
#![allow(clippy::expect_used)]
|
|
|
|
use std::process::Command;
|
|
|
|
use divan::Bencher;
|
|
|
|
fn main() {
|
|
divan::main();
|
|
}
|
|
|
|
/// Exercises the Bazel-backed end-to-end benchmark path with a cheap,
|
|
/// deterministic Codex invocation. Richer scenarios can add separate
|
|
/// benchmark binaries without making the shared harness depend on them.
|
|
#[divan::bench(sample_count = 20, sample_size = 1)]
|
|
fn codex_help(bencher: Bencher) {
|
|
let codex = akode_utils_cargo_bin::cargo_bin("akode")
|
|
.expect("codex binary should be available through Bazel runfiles");
|
|
|
|
bencher.bench_local(move || {
|
|
let output = Command::new(&codex)
|
|
.arg("--help")
|
|
.output()
|
|
.expect("akode --help should run");
|
|
assert!(output.status.success(), "akode --help should succeed");
|
|
});
|
|
}
|