Evan Almloff пре 2 година
родитељ
комит
0e7ee238ea
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2 2
      packages/tui/benches/update.rs
  2. 1 1
      packages/tui/examples/stress.rs

+ 2 - 2
packages/tui/benches/update.rs

@@ -10,8 +10,8 @@ fn tui_update(c: &mut Criterion) {
     let mut group = c.benchmark_group("Update boxes");
 
     // We can also use loops to define multiple benchmarks, even over multiple dimensions.
-    for size in 1..=8usize {
-        let parameter_string = format!("{}", (3 * size).pow(2));
+    for size in 1..=20usize {
+        let parameter_string = format!("{}", (size).pow(2));
         group.bench_with_input(
             BenchmarkId::new("size", parameter_string),
             &size,

+ 1 - 1
packages/tui/examples/stress.rs

@@ -3,7 +3,7 @@ use dioxus_tui::{Config, TuiContext};
 
 /// This benchmarks the cache performance of the TUI for small edits by changing one box at a time.
 fn main() {
-    for size in 1..=8usize {
+    for size in 1..=20usize {
         for _ in 0..10 {
             dioxus_tui::launch_cfg_with_props(app, size, Config::default().with_headless())
         }