> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/r/rate_counter.md).

# Rate counter

```ruby
var benchmark = frequire('Benchmark')
 
func job1 {
    #...job1 code...
}
func job2 {
    #...job2 code...
}
 
const COUNT = -1   # run for one CPU second
benchmark.timethese(COUNT, Hash('Job1' => job1, 'Job2' => job2))
```
