this post was submitted on 07 Mar 2026
11 points (100.0% liked)

Programming

25987 readers
176 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

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)

you are viewing a single comment's thread
view the rest of the comments
[โ€“] cecilkorik@lemmy.ca 3 points 2 days ago (1 children)

I might be going the wrong direction of "micro" here but time is the very minimal, tiny, and traditional unix way.

For example:

$ time curl https://lemmy.ca/post/61453347 > /dev/null
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  175k    0  175k    0     0   525k      0 --:--:-- --:--:-- --:--:--  526k

real    0m0.343s
user    0m0.030s
sys     0m0.016s

There are also a large number of other profiling outputs you can ask time to spit out by passing it the appropriate command line flags.

I'll look into using this in my workflow