What kind of code microprofiling/benchmarking software do you guys use? I was wondering if anyone knew of any that can also be used as a separate tool (open source preferred but I dont mind proprietary) rather than already integrated into something like Visual Studio.

Edit: I would like it to support Windows and Linux. I mostly program in C right now, but expanding into other languages (e.g., Rust, Python)

  • jubilationtcornpone@sh.itjust.works
    link
    fedilink
    arrow-up
    2
    ·
    3 days ago

    If you want to do resource profiling, Visual Studio can do that out of the box. For simple benchmarking, specifically for seeing how long certain calls take, I just just the Stopwatch class and ouput the result to a log entry. Assuming you’re using C# that is.