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..=8u32 {
        let parameter_string = format!("{}", (3 * size).pow(2));
        group.bench_with_input(
            BenchmarkId::new("size", parameter_string),
            &size,
            |b, size| {
                b.iter(|| match size {
                    1 => dioxus::tui::launch_cfg(app3, Config::default().with_headless()),
                    2 => dioxus::tui::launch_cfg(app6, Config::default().with_headless()),
                    3 => dioxus::tui::launch_cfg(app9, Config::default().with_headless()),
                    4 => dioxus::tui::launch_cfg(app12, Config::default().with_headless()),
                    5 => dioxus::tui::launch_cfg(app15, Config::default().with_headless()),
                    6 => dioxus::tui::launch_cfg(app18, Config::default().with_headless()),
                    7 => dioxus::tui::launch_cfg(app21, Config::default().with_headless()),
                    8 => dioxus::tui::launch_cfg(app24, Config::default().with_headless()),
                    _ => (),
                })
            },
        );
    }
}
/// This benchmarks the cache performance of the TUI for small edits by changing one box at a time.
This benchmarks the cache performance of the TUI for small edits by changing one box at a time.
This benchmarks the cache performance of the TUI for small edits by changing one box at a time .
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..=8u32 {
        let parameter_string = format!("{}", (3 * size).pow(2));
        group.bench_with_input(
            BenchmarkId::new("size", parameter_string),
            &size,
            |b, size| {
                b.iter(|| match size {
                    1 => dioxus::tui::launch_cfg(app3, Config::default().with_headless()),
                    2 => dioxus::tui::launch_cfg(app6, Config::default().with_headless()),
                    3 => dioxus::tui::launch_cfg(app9, Config::default().with_headless()),
                    4 => dioxus::tui::launch_cfg(app12, Config::default().with_headless()),
                    5 => dioxus::tui::launch_cfg(app15, Config::default().with_headless()),
                    6 => dioxus::tui::launch_cfg(app18, Config::default().with_headless()),
                    7 => dioxus::tui::launch_cfg(app21, Config::default().with_headless()),
                    8 => dioxus::tui::launch_cfg(app24, Config::default().with_headless()),
                    _ => (),
                })
            },
        );
    }
}
fn tui_update ( c : & mut Criterion ) { let mut group = c . benchmark_group ( " " ) ; // We can also use loops to define multiple benchmarks, even over multiple dimensions. for size in 1 ..= 8u32 { let parameter_string = format ! ( " " ( 3 size ) pow ( 2 ) ) ; group . bench_with_input ( BenchmarkId :: new ( " " , parameter_string ) , & size , | b , size | { b . iter ( | | match size { 1 => dioxus :: tui :: launch_cfg ( app3 , Config :: default ( ) . with_headless ( ) ) , 2 => dioxus :: tui :: launch_cfg ( app6 , Config :: default ( ) . with_headless ( ) ) , 3 => dioxus :: tui :: launch_cfg ( app9 , Config :: default ( ) . with_headless ( ) ) , 4 => dioxus :: tui :: launch_cfg ( app12 , Config :: default ( ) . with_headless ( ) ) , 5 => dioxus :: tui :: launch_cfg ( app15 , Config :: default ( ) . with_headless ( ) ) , 6 => dioxus :: tui :: launch_cfg ( app18 , Config :: default ( ) . with_headless ( ) ) , 7 => dioxus :: tui :: launch_cfg ( app21 , Config :: default ( ) . with_headless ( ) ) , 8 => dioxus :: tui :: launch_cfg ( app24 , Config :: default ( ) . with_headless ( ) ) , _ => ( ) , } ) } , ) ; } }
This benchmarks the cache performance of the TUI for small edits by changing one box at a time.
This benchmarks the cache performance of the TUI for small edits by changing one box at a time .
c
&mut Criterion
c
&mut Criterion