aKode fase 5: rinomina interna (crate akode-*, akode-rs/, akode-cli/, binario akode, AKODE_*, ~/.akode, snapshot)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
26
akode-rs/cli/e2e_benches/codex_help.rs
Normal file
26
akode-rs/cli/e2e_benches/codex_help.rs
Normal file
@@ -0,0 +1,26 @@
|
||||
#![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");
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user