title: Cost of common operations for C#?
body: <p>In <a href="https://rads.stackoverflow.com/amzn/click/com/0735619670" rel="nofollow noreferrer" rel="nofollow noreferrer">Code Complete 2</a> (page 601 and 602) there is a table of "Cost of Common Operations".</p>
  
  <p>The baseline operation integer assignment is given a value 1 and then the relative time for common operations is listed for Java and C++. For example:</p>
  
  <pre><code>                                  C++        Java
  Integer assignment                1             1
  Integer division                  5             1.5
  Floating point square root       15             4 
  </code></pre>
  
  <p>The question is has anyone got this data for C#? I know that these won't help me solve any problems specifically, I'm just curious.</p>