title: How to measure x86 and x86-64 assembly commands execution time in processor cycles?
body: <p>I want to write a bunch of optimizations for gcc using genetic algorithms.
  I need to measure execution time of an assembly functions for some stats and fit functions.
  The usual time measurement can't be used, 'cause it is influenced by the cache size.<br>
  So I need a table where I can see something like this.</p>
  
  <pre><code>command | operands | operands sizes | execution cycles
  </code></pre>
  
  <p>Am I missunderstanding something?
  Sorry for bad English.</p>