title: Calculating Floating point Operations Per Second(FLOPS) and Integer Operations Per Second(IOPS)
body: <p>I am trying to learn some basic benchmarking. I have a loop in my Java program like,</p>
  
  <pre><code>float a=6.5f;
  int b=3;    
  for(long j=0; j&lt;999999999; j++){            
         var = a*b+(a/b);
      }//end of for
  </code></pre>
  
  <p>My processor takes around 0.431635 second to process this. How would I calculate processor speed in terms of Flops(Floating point Operations Per Second) and Iops(Integer Operations Per Second)? Can you provide explanations with some steps? </p>