run some benchmarks on hosted

This commit is contained in:
bunnie 2021-01-22 04:25:13 +08:00
parent d235218ec3
commit fb10311fbc
2 changed files with 7 additions and 3 deletions

View file

@ -152,11 +152,13 @@ fn shell_main() -> ! {
// actual benchmark
// get a scalar message
if true {
// measured at 1349 iterations per second in this loop
if false {
// measured at 1349 iterations per second in this loop (hardware); 55/s (hosted)
count = benchmark_target::test_scalar(target_conn, count).expect("BENCHMARK: couldn't send test message");
check_count = check_count + 1;
} else {
// works on hosted mode, 35/s (hosted)
// does *not* work on hardware
count = benchmark_target::test_memory(target_conn, count).expect("BENCHMARK: couldn't send test message");
check_count = check_count + 1;
}

View file

@ -186,7 +186,9 @@ fn run(debug: bool) -> Result<(), DynError> {
let stream = if debug { "debug" } else { "release" };
let init = [
//"shell",
"gam",
//"gam",
"benchmark",
"benchmark-target",
"log-server",
"graphics-server",
"ticktimer-server",