Separated simple benchmark

This commit is contained in:
2026-01-29 10:38:07 +01:00
parent 059f8f07c1
commit 74c4a976dd
4 changed files with 106 additions and 3 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ use std::sync::Arc;
use osui::prelude::*;
pub fn main() {
let engine = Benchmark::new(Console::new());
let engine = SimpleBenchmark::new(Console::new());
engine.run(app);
}
+15
View File
@@ -0,0 +1,15 @@
use std::sync::Arc;
use osui::prelude::*;
pub fn main() {
let engine = SimpleBenchmark::new(Console::new());
engine.run(app);
}
fn app(cx: &Arc<Context>) -> View {
rsx! {
"Hello, world!"
}
.view(cx.clone())
}