mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-11 07:40:10 +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
|
||||
// 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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue