Skip to content

Commit 67cc1bd

Browse files
committed
Smaller raytracer scene, more samples in bench tasks
1 parent 1ed0ee3 commit 67cc1bd

File tree

10 files changed

+9
-11
lines changed

10 files changed

+9
-11
lines changed

wasm/dotnet/benchmark.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ class Benchmark {
126126
this.exports = await this.api.getAssemblyExports("dotnet.dll");
127127

128128
this.hardwareConcurrency = globalThis.navigator?.hardwareConcurrency ?? 1;
129-
this.sceneWidth = dotnetFlavor === "aot" ? 320 : 240;
130-
this.sceneHeight = dotnetFlavor === "aot" ? 240 : 160;
129+
this.sceneWidth = dotnetFlavor === "aot" ? 300 : 150;
130+
this.sceneHeight = dotnetFlavor === "aot" ? 200 : 100;
131131
}
132132
async runIteration() {
133133
await this.exports.Interop.RunIteration(this.sceneWidth, this.sceneHeight, this.hardwareConcurrency);
Binary file not shown.

wasm/dotnet/build-aot/wwwroot/_framework/blazor.boot.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{
22
"mainAssemblyName": "dotnet",
33
"resources": {
4-
"hash": "sha256-zvWErgTB3j86wg+H5ZzEMCbGJzb7zeq7QT250If+qkE=",
4+
"hash": "sha256-TetQh5LU2JSJTZFWZ6KZV31MnuW8ESVCAIHjzklLuWA=",
55
"jsModuleNative": {
66
"dotnet.native.js": "sha256-Ca6UeRnsgHRBtJNPbrErXmKImnD9qkhZV+u7XAPg7Kk="
77
},
88
"jsModuleRuntime": {
99
"dotnet.runtime.js": "sha256-x+PnWU47EIr/zL3xxqIUMDJi/dy5904TVGunDqCvjIY="
1010
},
1111
"wasmNative": {
12-
"dotnet.native.wasm": "sha256-G4WsNS5f19jWkBhdoGcr85uVBp7L0i9HfbhZE8szIx4="
12+
"dotnet.native.wasm": "sha256-zbPGFcT0xp16HBpAFt+ticlpNuDyX9GtwbKxZ5cK0Vc="
1313
},
1414
"icu": {
1515
"icudt_CJK.dat": "sha256-SZLtQnRc0JkwqHab0VUVP7T3uBPSeYzxzDnpxPpUnHk=",
1616
"icudt_EFIGS.dat": "sha256-8fItetYY8kQ0ww6oxwTLiT3oXlBwHKumbeP2pRF4yTc=",
1717
"icudt_no_CJK.dat": "sha256-L7sV7NEYP37/Qr2FPCePo5cJqRgTXRwGHuwF5Q+0Nfs="
1818
},
1919
"coreAssembly": {
20-
"dotnet.wasm": "sha256-gN90zfHKtWEcrb2wT+mY0/iazDH8mnvNmVKBD4Wndvg=",
20+
"dotnet.wasm": "sha256-7jnXiU0e3kz2whsNsLYSjTxgyr/mW1psmsHFxOXIzhU=",
2121
"System.Collections.Concurrent.wasm": "sha256-t0RfwdTUubHqJjICCaVLtSx90sFWPoVRYIBQnpqEfMQ=",
2222
"System.Collections.wasm": "sha256-74tIaxlz1VKy1ZJ4df4oWr0Qg+02hNMZMg8sM0uJR2s=",
2323
"System.ComponentModel.Primitives.wasm": "sha256-9KlsDyYr/L+BwPCVQ2tA0tK0UoOCyGIHfd97P1s0oBE=",
@@ -28,7 +28,7 @@
2828
"System.Linq.wasm": "sha256-eRQ2yKv3JP64KBRLvwtLwSlbppQjb762xQNooQGJHAE=",
2929
"System.Memory.wasm": "sha256-r8Kxq0g7VCrnXJ56At7Do+nd5C+iMx+5hehlmndZ6rM=",
3030
"System.ObjectModel.wasm": "sha256-3cKLFYajKINLJVByXBP5/Acx77qAT7PSgLMjEbwJT/Y=",
31-
"System.Private.CoreLib.wasm": "sha256-4ABDTE0I0+Eq17DlaFRzbEsbDoUduhA2R67QfkhcPBI=",
31+
"System.Private.CoreLib.wasm": "sha256-VeHFDCz0ZLJHaMF1WXBO1dq32aqOtAxQBY7UtOYHFV4=",
3232
"System.Runtime.InteropServices.JavaScript.wasm": "sha256-korzY+8y6mDCphxjpRx32qfUE1gK6/6D9W3cnrkRvjo=",
3333
"System.Text.Encodings.Web.wasm": "sha256-FQmyjTLY+V+DwY398iWiXOOSDmS7cQtLg/Tc6hw2MGQ=",
3434
"System.Text.Json.wasm": "sha256-DIIG/xiMdrqVxsRrAgOchWbwxu3ftjBvEwUqHNHpWgs="
Binary file not shown.
Binary file not shown.

wasm/dotnet/build-interp/wwwroot/_framework/blazor.boot.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"mainAssemblyName": "dotnet",
33
"resources": {
4-
"hash": "sha256-hvbbvFatRhA/wPmwCtsGNtz58h0Yp+6f/BaEeT4Z0uA=",
4+
"hash": "sha256-1ZTKAyaVTXosThcFUI9QZiluBFEbjQZOa2jPvSc3SDI=",
55
"jsModuleNative": {
66
"dotnet.native.js": "sha256-byX+R2fU4k/BCE4uzI+3ZqDM4tUu50nBCUwWUwhAdWQ="
77
},
@@ -21,7 +21,7 @@
2121
"System.Runtime.InteropServices.JavaScript.wasm": "sha256-korzY+8y6mDCphxjpRx32qfUE1gK6/6D9W3cnrkRvjo="
2222
},
2323
"assembly": {
24-
"dotnet.wasm": "sha256-o3DbOyfWyQAKKXe0N/LnIV6WB10MWtiujN10r56C3PY=",
24+
"dotnet.wasm": "sha256-0OrjlYRuf2YAx3j36GSRfe7GI1HqhxZuTh1a165o+ZA=",
2525
"System.Collections.Concurrent.wasm": "sha256-t0RfwdTUubHqJjICCaVLtSx90sFWPoVRYIBQnpqEfMQ=",
2626
"System.Collections.wasm": "sha256-74tIaxlz1VKy1ZJ4df4oWr0Qg+02hNMZMg8sM0uJR2s=",
2727
"System.ComponentModel.Primitives.wasm": "sha256-9KlsDyYr/L+BwPCVQ2tA0tK0UoOCyGIHfd97P1s0oBE=",
Binary file not shown.

wasm/dotnet/src/dotnet/Benchmarks/BenchTask.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public abstract class BenchTask
1414

1515
public virtual bool BrowserOnly => false;
1616

17-
public virtual int BatchSize => 3;
17+
public virtual int BatchSize => 100;
1818

1919
public async Task RunInitialSamples(int measurementIdx)
2020
{

wasm/dotnet/src/dotnet/Benchmarks/Json.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ namespace Sample
1313
class JsonTask : BenchTask
1414
{
1515
public override string Name => "Json";
16-
public override int BatchSize => 25;
1716
Measurement[] measurements;
1817

1918
public JsonTask()

wasm/dotnet/src/dotnet/Benchmarks/String.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ namespace Sample
1111
class StringTask : BenchTask
1212
{
1313
public override string Name => "String";
14-
public override int BatchSize => 2;
1514
Measurement[] measurements;
1615

1716
public StringTask()

0 commit comments

Comments
 (0)