benchmark function

    0

    5

    lucycodes42

    Go Code Snippets

    The code benchmarks a function by running it multiple times.

    Shortcut: bf

    func Benchmark(b *testing.B) {
      for i := 0; i < b.N; i++ {
        
      }
    }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.