-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
On macOS ticks per second is 100.
However, dry29.c uses 60. (Through dry.c uses 100.)
#define HZ 60 /* 2.9BSD standard: 60 Hz (1/60 second ticks) */This may explain the surprisingly low number (47,808,764) you reported for a Mac M2 Ultra.
While I get 61,300,308 with a much older i7 Macmini using dry.c.
The following works for me, though I don’t know how portable it is.
#include <limits.h>
#define HZ CLK_TCKAlso the output line Microseconds for one run through Dhrystone: 0.0 would be better updated to use Nanoseconds….
Metadata
Metadata
Assignees
Labels
No labels