Skip to content

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

Merged
radekdoulik merged 12 commits into
dotnet:mainfrom
radekdoulik:pr-console-version-of-wasm-bench-sample
Nov 8, 2021
Merged

[wasm] Add console version of browser-bench sample#60733
radekdoulik merged 12 commits into
dotnet:mainfrom
radekdoulik:pr-console-version-of-wasm-bench-sample

Conversation

@radekdoulik

Copy link
Copy Markdown
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
Copy Markdown

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 lewing, pavelsavara, radical and vargaz and removed request for pavelsavara and radicalNovember 5, 2021 13:43
@radekdoulik
radekdoulik marked this pull request as ready for review November 5, 2021 13:44
<PropertyGroup>
<_SampleProject>Wasm.Console.Sample.csproj</_SampleProject>
<_SampleAssembly> Wasm.Console.Sample.dll</_SampleAssembly>
</PropertyGroup>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Extra space after >.

@radekdoulik
radekdoulik merged commit a8ac67a into dotnet:mainNov 8, 2021
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

arch-wasmWebAssembly architecturearea-Infrastructure-mono

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@radekdoulik@vargaz