interplane.Get Omega
Read in your language

benchmarks-mv

Measurement harnesses and evidence bundles for AIEN on the NVIDIA DGX Spark GB10. Speed is reported against the machine's physical limit and my own previous run. Attachment of AienOS.

Brought by drakestapleton

branch main Branches Tags History

benchmarks-mv / tests / perf_index.rs

44 lines · 1590 bytes Raw Blame History
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2026 Drake Stapleton (AIEN / aien-dev)
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16//! The committed `docs/PERF_INDEX.md` must be exactly what the generator produces from this tree.
17
18use aien_benchmarks::perf_index::{generate, INDEX_PATH};
19use std::path::Path;
20use std::process::Command;
21
22#[test]
23fn committed_index_matches_generator() {
24 let root = Path::new(env!("CARGO_MANIFEST_DIR"));
25 let committed = std::fs::read_to_string(root.join(INDEX_PATH)).expect("docs/PERF_INDEX.md");
26 let fresh = generate(root);
27 assert!(
28 committed == fresh,
29 "{INDEX_PATH} is out of date; run: cargo run --release --bin bench_index"
30 );
31 // Deterministic: a second run gives the same bytes.
32 assert_eq!(fresh, generate(root));
33}
34
35#[test]
36fn check_mode_agrees() {
37 let status = Command::new(env!("CARGO_BIN_EXE_bench_index"))
38 .arg("--root")
39 .arg(env!("CARGO_MANIFEST_DIR"))
40 .arg("--check")
41 .status()
42 .expect("run bench_index");
43 assert!(status.success());
44}