Where can I find the x86 instructions execution time? How to find out which instruction is faster or smaller?
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
http://www.intel.com/content/www/us/en/processors/architectures-software-developer-manuals.html - you want the software developer manual for the CPU you are interested in.
Keep in mind that there is no "time" for each instruction, these days. You have out of order execution, memory and register stalls, and instruction level parallelism to take into account.
The raw numbers are in those manuals, though.
Daniel already summed up the answer, +1 to that. Bottom line is that on modern CPUs with over 2 billion transistors, they do such crazy things that you can't look at assembly instructions and expect to guess timing. The only thing you can really do is write code and measure its performance.
On that note, if you are curious about learning more, take a look at http://www.flounder.com/exceptions.htm. The guy who wrote that article is a PhD and actually has a lot of cool things to say about many things. I've spent some time going through all his articles. The one I'm linking talks about measuring performance of exception handling and he goes right down to assembly instruction level.