From fb10311fbc615aef6d2f7c491fcff1f2b3e07868 Mon Sep 17 00:00:00 2001 From: bunnie Date: Fri, 22 Jan 2021 04:25:13 +0800 Subject: [PATCH] run some benchmarks on hosted --- services/benchmark/src/main.rs | 6 ++++-- xtask/src/main.rs | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/services/benchmark/src/main.rs b/services/benchmark/src/main.rs index b49d7b9c0..d770e9850 100644 --- a/services/benchmark/src/main.rs +++ b/services/benchmark/src/main.rs @@ -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; } diff --git a/xtask/src/main.rs b/xtask/src/main.rs index a09f2a2bc..7ebeaa85b 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs @@ -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",