flat assembler
Message board for the users of flat assembler.

flat assembler > Windows > How do you benchmark/profile code?

Author
Thread Post new topic Reply to topic
vivik



Joined: 29 Oct 2016
Posts: 533
Do you use some tools for that or something?
Post 09 Feb 2018, 18:35
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 16128
Location: Hyperborea
RDTSC is useful for short times.

The QPC API can also be useful for longer times.

Or the "wall clock" for even longer times.

I've never felt the need for more than that.
Post 09 Feb 2018, 18:39
View user's profile Send private message Visit poster's website Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2311
Location: Usono (aka, USA)
RDTSCP (since 2010) is preferred under SMP, Naive measurements can be done with *nix sh "time". Others (e.g. DJGPP) have "redir -t". OpenWatcom has wprof. GCC has gprof. Linux has perf and valgrind. Or you may just count calling your heavy routines manually (via extra code).

https://en.wikipedia.org/wiki/List_of_performance_analysis_tools

Or did you really mean "Windows only" (since this is the Windows subforum)???
Post 09 Feb 2018, 21:25
View user's profile Send private message Visit poster's website Reply with quote
vivik



Joined: 29 Oct 2016
Posts: 533
Yep, windows tools. How visual studio users benchmark their code, maybe they have some good way of doing that.
Post 10 Feb 2018, 07:31
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2018, Tomasz Grysztar.

Powered by rwasa.