Stream: git-wasmtime

Topic: wasmtime / PR #4398 wasmtime: Add criterion micro benchma...


view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 22:14):

fitzgen opened PR #4398 from trap-micro-benchmarks to main:

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 22:14):

fitzgen requested alexcrichton for a review on PR #4398.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 22:24):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 22:24):

alexcrichton created PR review comment:

How come this is re-instantiating each time? Could the same instance be used to use b.iter(|| ...)?

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 22:24):

alexcrichton created PR review comment:

I think this may be a copy/paste error and there should only be one module in this benchmark?

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 22:24):

alexcrichton created PR review comment:

Personally I find that benchmarks like this aren't the best for measuring multithreaded contention. The threads aren't actually guaranteed to be interleaved here as starting up a thread may sometimes take just as long as the number of iterations. Additionally the numbers coming out of criterion itself are unrelated to other numbers below about depth and number of modules since here it's N threads doing 1000 traps where below it's time-per-trap.

Would you be up for restructuring this like the concurrent instantiation benchmark? That one has a scheme where:

That should guarantee that there's concurrent work in the background and additionally yield comparable numbers to the other benchmarks below.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 22:24):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 22:26):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 22:26):

fitzgen created PR review comment:

Because one isn't really "supposed" to call back into a wasm instance after it traps.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 22:26):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 22:26):

fitzgen created PR review comment:

Good eye.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 22:27):

fitzgen created PR review comment:

Good idea!

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 22:27):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 23:07):

fitzgen updated PR #4398 from trap-micro-benchmarks to main.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 23:14):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 23:14):

fitzgen created PR review comment:

Done.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 23:14):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 23:14):

fitzgen created PR review comment:

Switched to one instance/store.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 23:14):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 23:14):

fitzgen created PR review comment:

Fixed.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 23:56):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 06 2022 at 23:56):

alexcrichton has enabled auto merge for PR #4398.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 07 2022 at 00:20):

alexcrichton merged PR #4398.


Last updated: Nov 22 2024 at 17:03 UTC