mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-17 08:40:52 +00:00
run some benchmarks on hosted
This commit is contained in:
parent
d235218ec3
commit
fb10311fbc
2 changed files with 7 additions and 3 deletions
|
|
@ -152,11 +152,13 @@ fn shell_main() -> ! {
|
||||||
|
|
||||||
// actual benchmark
|
// actual benchmark
|
||||||
// get a scalar message
|
// get a scalar message
|
||||||
if true {
|
if false {
|
||||||
// measured at 1349 iterations per second in this loop
|
// 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");
|
count = benchmark_target::test_scalar(target_conn, count).expect("BENCHMARK: couldn't send test message");
|
||||||
check_count = check_count + 1;
|
check_count = check_count + 1;
|
||||||
} else {
|
} 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");
|
count = benchmark_target::test_memory(target_conn, count).expect("BENCHMARK: couldn't send test message");
|
||||||
check_count = check_count + 1;
|
check_count = check_count + 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -186,7 +186,9 @@ fn run(debug: bool) -> Result<(), DynError> {
|
||||||
let stream = if debug { "debug" } else { "release" };
|
let stream = if debug { "debug" } else { "release" };
|
||||||
let init = [
|
let init = [
|
||||||
//"shell",
|
//"shell",
|
||||||
"gam",
|
//"gam",
|
||||||
|
"benchmark",
|
||||||
|
"benchmark-target",
|
||||||
"log-server",
|
"log-server",
|
||||||
"graphics-server",
|
"graphics-server",
|
||||||
"ticktimer-server",
|
"ticktimer-server",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue