nikgoodley-ibboost / gbench

Automatically exported from code.google.com/p/gbench
Apache License 2.0
0 stars 0 forks source link

The times of benchmarking a closure that does nothing aren't zero #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
{{{
def r = benchmark {
  'Do Nothing' { }
}
// stdout
            user  system  cpu  real

Do Nothing   104       0  104   104
}}}

What is the expected output? What do you see instead?
all the time should be zero

Original issue reported on code.google.com by nagaimas...@gmail.com on 20 Mar 2013 at 2:23

GoogleCodeExporter commented 9 years ago

Original comment by nagaimas...@gmail.com on 20 Mar 2013 at 2:27

GoogleCodeExporter commented 9 years ago
fixed 
https://code.google.com/p/gbench/source/detail?r=0c580609106d9b0a4f9c6d324696842
91313c5ed&name=develop

Original comment by nagaimas...@gmail.com on 20 Mar 2013 at 7:49