Remove unused err.myc example

Update benchmark output for soa_series.myc.
Also, fix the tester to not panic when a baseline is missing, and
instead just report it as missing.
This commit is contained in:
Michael Schimmel
2026-03-06 12:07:39 +01:00
parent 1342c7ca8e
commit b9d88f019e
4 changed files with 9 additions and 25 deletions
-14
View File
@@ -1,14 +0,0 @@
;; Output: 20
(do
(def tst
(fn [length]
(do
(def history (series :float))
(fn [val]
(do
length
))
)))
((tst 20) 5)
)
+2 -2
View File
@@ -1,6 +1,6 @@
;; Output: 26.7
;; Benchmark: 1.0us
;; Benchmark-Repeat: 1944
;; Benchmark: 1.4us
;; Benchmark-Repeat: 1406
(do
(def my_ticks (series {:price :float :volume :int :msg :text}))
+4 -1
View File
@@ -498,7 +498,10 @@ fn register_io(env: &Environment) {
}));
env.register_native_fn("print", print_ty, Purity::Impure, |args| {
for arg in args {
print!("{}", arg);
match arg {
Value::Text(t) => print!("{}", t),
_ => print!("{}", arg),
}
}
println!();
Value::Void
+3 -8
View File
@@ -100,6 +100,9 @@ pub fn run_benchmarks(update: bool, filter: Option<&str>) -> Vec<BenchmarkResult
let content = fs::read_to_string(&path).unwrap();
let baseline_match = baseline_re.captures(&content);
if !update && baseline_match.is_none() {
continue;
}
let repeat_match = repeat_re.captures(&content);
let mut repeats = repeat_match
@@ -269,14 +272,6 @@ pub fn run_benchmarks(update: bool, filter: Option<&str>) -> Vec<BenchmarkResult
diff_pct: Some(diff * 100.0),
status: status.to_string(),
});
} else {
results.push(BenchmarkResult {
name,
median: median_single,
baseline: None,
diff_pct: None,
status: "MISSING BASELINE".to_string(),
});
}
}
results