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

[wasm] Add console version of browser-bench sample #60733

Merged

Conversation

radekdoulik
Copy link
Member

Example run:

> v8 --expose_wasm runtime.js --  --run  Wasm.Console.Bench.Sample.dll -t Json:non,Exceptions:Inline
console.info: Arguments: --run,Wasm.Console.Bench.Sample.dll,-t,Json:non,Exceptions:Inline
console.debug: MONO_WASM: Initializing mono runtime
console.debug: MONO_WASM: ICU data archive(s) loaded, disabling invariant mode
console.debug: mono_wasm_runtime_ready fe00e07a-5519-4dfe-b35a-f867dbaf2e28
console.info: Initializing.....
Benchmark started
Json, non-ASCII text serialize count: 23, per call: 7.565217391304348ms, total: 0.174s
...
Exceptions, TryCatchFilterInline count: 1766666, per call: 4.301888415806949E-05ms, total: 0.076s

Summary
Json, non-ASCII text serialize: 7.478260869565218ms
Json, non-ASCII text deserialize: 10.789473684210526ms
Exceptions, TryCatchFilterInline: 4.301888415806949E-05ms

.md
| measurement | time |
|-:|-:|
|         Json, non-ASCII text serialize |     7.4783ms |
|       Json, non-ASCII text deserialize |    10.7895ms |
|       Exceptions, TryCatchFilterInline |     0.0430us |

@ghost
Copy link

ghost commented Oct 21, 2021

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Example run:

> v8 --expose_wasm runtime.js --  --run  Wasm.Console.Bench.Sample.dll -t Json:non,Exceptions:Inline
console.info: Arguments: --run,Wasm.Console.Bench.Sample.dll,-t,Json:non,Exceptions:Inline
console.debug: MONO_WASM: Initializing mono runtime
console.debug: MONO_WASM: ICU data archive(s) loaded, disabling invariant mode
console.debug: mono_wasm_runtime_ready fe00e07a-5519-4dfe-b35a-f867dbaf2e28
console.info: Initializing.....
Benchmark started
Json, non-ASCII text serialize count: 23, per call: 7.565217391304348ms, total: 0.174s
...
Exceptions, TryCatchFilterInline count: 1766666, per call: 4.301888415806949E-05ms, total: 0.076s

Summary
Json, non-ASCII text serialize: 7.478260869565218ms
Json, non-ASCII text deserialize: 10.789473684210526ms
Exceptions, TryCatchFilterInline: 4.301888415806949E-05ms

.md
| measurement | time |
|-:|-:|
|         Json, non-ASCII text serialize |     7.4783ms |
|       Json, non-ASCII text deserialize |    10.7895ms |
|       Exceptions, TryCatchFilterInline |     0.0430us |
Author: radekdoulik
Assignees: -
Labels:

arch-wasm, area-Infrastructure-mono

Milestone: -

To avoid

    CSC : error CS8002: Referenced assembly 'Mono.Options, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' does not have a strong name.
@radekdoulik radekdoulik requested review from pavelsavara, radical, vargaz and lewing and removed request for pavelsavara and radical November 5, 2021 13:43
@radekdoulik radekdoulik marked this pull request as ready for review November 5, 2021 13:44
@@ -7,6 +7,7 @@

<PropertyGroup>
<_SampleProject>Wasm.Console.Sample.csproj</_SampleProject>
<_SampleAssembly> Wasm.Console.Sample.dll</_SampleAssembly>
</PropertyGroup>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra space after >.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants