Skip to content

Instantly share code, notes, and snippets.

@quux00
Last active August 29, 2015 13:55
Show Gist options
  • Save quux00/8701765 to your computer and use it in GitHub Desktop.
Save quux00/8701765 to your computer and use it in GitHub Desktop.
My measurements for the "kernel interrupt timing" programs:
|--------------------+-----------------+-------------+------------------------------|
| SIGALRM Interval | Program version | Measured Hz | Measured Interval Avg (usec) |
|--------------------+-----------------+-------------+------------------------------|
| (init setting) 250 | Rust | 4001 | 250 |
| (init setting) 250 | C | 4016 | 249 |
|--------------------+-----------------+-------------+------------------------------|
| 500 | Rust | 2001 | 500 |
| 500 | C | 2004 | 499 |
| 1000 | Rust | 1001 | 999 |
| 1000 | C | 1002 | 998 |
| 10000 | Rust | 100.4 | 9960 |
| 10000 | C | 100 | 9959 |
|--------------------+-----------------+-------------+------------------------------|
| 100 | Rust | 10002 | 100 |
| 100 | C | 10101 | 99 |
| 10 | Rust | 99148 | 10.1 |
| 10 | C | 99999 | 10 |
| 1 | Rust | 346109 | 2.89 |
| 1 | C | 1000000 | 1 |
|--------------------+-----------------+-------------+------------------------------|
Rust Source: https://github.com/quux00/rustKernelTimer (forked from: https://github.com/wbthomason/rustKernelTimer)
C Source: http://www.advenage.com/topics/linux-timer-interrupt-frequency.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment