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:
@@ -1,14 +0,0 @@
|
|||||||
;; Output: 20
|
|
||||||
(do
|
|
||||||
(def tst
|
|
||||||
(fn [length]
|
|
||||||
(do
|
|
||||||
(def history (series :float))
|
|
||||||
(fn [val]
|
|
||||||
(do
|
|
||||||
length
|
|
||||||
))
|
|
||||||
)))
|
|
||||||
|
|
||||||
((tst 20) 5)
|
|
||||||
)
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
;; Output: 26.7
|
;; Output: 26.7
|
||||||
;; Benchmark: 1.0us
|
;; Benchmark: 1.4us
|
||||||
;; Benchmark-Repeat: 1944
|
;; Benchmark-Repeat: 1406
|
||||||
(do
|
(do
|
||||||
(def my_ticks (series {:price :float :volume :int :msg :text}))
|
(def my_ticks (series {:price :float :volume :int :msg :text}))
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -498,7 +498,10 @@ fn register_io(env: &Environment) {
|
|||||||
}));
|
}));
|
||||||
env.register_native_fn("print", print_ty, Purity::Impure, |args| {
|
env.register_native_fn("print", print_ty, Purity::Impure, |args| {
|
||||||
for arg in args {
|
for arg in args {
|
||||||
print!("{}", arg);
|
match arg {
|
||||||
|
Value::Text(t) => print!("{}", t),
|
||||||
|
_ => print!("{}", arg),
|
||||||
|
}
|
||||||
}
|
}
|
||||||
println!();
|
println!();
|
||||||
Value::Void
|
Value::Void
|
||||||
|
|||||||
+3
-8
@@ -100,6 +100,9 @@ pub fn run_benchmarks(update: bool, filter: Option<&str>) -> Vec<BenchmarkResult
|
|||||||
let content = fs::read_to_string(&path).unwrap();
|
let content = fs::read_to_string(&path).unwrap();
|
||||||
|
|
||||||
let baseline_match = baseline_re.captures(&content);
|
let baseline_match = baseline_re.captures(&content);
|
||||||
|
if !update && baseline_match.is_none() {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
let repeat_match = repeat_re.captures(&content);
|
let repeat_match = repeat_re.captures(&content);
|
||||||
|
|
||||||
let mut repeats = repeat_match
|
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),
|
diff_pct: Some(diff * 100.0),
|
||||||
status: status.to_string(),
|
status: status.to_string(),
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
results.push(BenchmarkResult {
|
|
||||||
name,
|
|
||||||
median: median_single,
|
|
||||||
baseline: None,
|
|
||||||
diff_pct: None,
|
|
||||||
status: "MISSING BASELINE".to_string(),
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
results
|
results
|
||||||
|
|||||||
Reference in New Issue
Block a user