-
Notifications
You must be signed in to change notification settings - Fork 10
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
Libmpeff first benchmarks #60
Libmpeff first benchmarks #60
Conversation
I'm not sure what it could be, I'll try to take a look later, have you tried any other opkind? (
|
I tried the different opkinds, but it did not help much. In terms of time, I got But I thought since I am always resuming in tail position, that I could maybe use |
To add to this, the reason why Using hyperfine, I get
which is clearly quadratic. Of coures the same is true of other systems, such as
which also quadratic. However, |
Given that |
I implemented the one-shot benchmarks in
libmpeff
as well, usingclang-14
for ease for comparison tolibseff
:Out of these, I could only get
handler sieve
working by making theprime()
operation in the handler definitionSCOPED_ONCE
, and then resuming withmpe_resume_tail
in the handler clause. It takes ~60 seconds when given 60,000 as input, which is substantially longer than any of the other languages. @teofr @dhil maybe you know why? It might have to do with the flags, but if I usedTAIL_NOOP
instead ofSCOPED_ONCE
, the nested handlers would fail to perform the same effect from child to parent.