Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some built-in stats #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Some built-in stats #24

wants to merge 1 commit into from

Conversation

viega
Copy link

@viega viega commented Jun 2, 2023

Added wall-time measurement that measures ops/sec. Basically, each thread keeps a count of its own attempts, then reports them before exiting via an atomic fetch and add. Can be turned off with -D NO_STATS, but should be on by default, because the counter increment is negligable; it will not meaningfully impact performance. Also, actually uses CFLAGS when building (the default build was NOT actually invoking -O3).

…read keeps a count of its own attempts, then reports them before exiting via an atomic fetch and add. Can be turned off with -D NO_STATS, but should be on by default, because the counter increment is negligable; it will not meaningfully impact performance. Also, actually uses CFLAGS when building (the default build was NOT actually invoking -O3).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant