Open bugadani opened 4 days ago
Ran the added benchmark on 0.22 and this PR:
0.22: INFO - Test OK, count=26628, cycles=45065/100
PR: INFO - Test OK, count=26616, cycles=45085/100
PR with Relaxed
memory ordering: INFO - Test OK, count=27535, cycles=43580/100
This isn't surprising as the benchmark doesn't rely on the time driver, but at least it also means that set_alarm(u64::MAX)
didn't get worse.
Is the benchmark supposed to stay or is it a temporary thing?
I'd like to keep it around
I'd like to keep it around
Just asking because it looks a bit out of place here. I'm also wondering if we should have more benchmarks (for other things) in general and if we should have such a thing in parallel to qa-test
and hil-test
(maybe not part of this PR)
Just asking because it looks a bit out of place here. I'm also wondering if we should have more benchmarks (for other things) in general and if we should have such a thing in parallel to qa-test and hil-test (maybe not part of this PR)
I guess it fits well enough into qa-test
, I'll move it.
This PR does a few things:
Alarm
, so that we don't have to maintain an array of handlers, and we don't have to index to access initialized timers.#[handler]
functions can now be references in const context.