#[bench]
      fn bench_fn_name(b: &mut test::Bencher) {
        b.iter(|| {
          // code to benchmark inside the iter method
        })
      }
      
      Rust language logo

      Function with Benchmark

      Codiga's Rust Recipes

      Use bench to benchmark code inside an iter function

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.