Skip to content

Commit 7eeff3e

Browse files
authored
feat: upgrade to .net 10 (#187)
1 parent 79c6780 commit 7eeff3e

File tree

27 files changed

+70
-60
lines changed

27 files changed

+70
-60
lines changed

samples/bench/bootsharp/Boot.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0-browser</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
66
<!-- NOTE: Embedding doesn't affect runtime performance, leaving it for future reference. -->
77
<BootsharpEmbedBinaries>false</BootsharpEmbedBinaries>

samples/bench/dotnet-llvm/DotNetLLVM.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0-browser</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
66
<OutputType>Exe</OutputType>
77
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>

samples/bench/dotnet-llvm/init.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { dotnet } from "./bin/Release/net9.0-browser/browser-wasm/publish/dotnet.js";
1+
import { dotnet } from "./bin/Release/net10.0/browser-wasm/publish/dotnet.js";
22

33
/** @returns {Promise<import("../bench.mjs").Exports>} */
44
export async function init() {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
1. Install .NET https://dotnet.microsoft.com/en-us/download
22
2. Install Binaryen https://github.com/WebAssembly/binaryen
33
3. Run `dotnet publish`
4-
4. Run `wasm-opt bin/Release/net9.0-browser/browser-wasm/publish/dotnet.native.wasm -O3 -o bin/Release/net9.0-browser/browser-wasm/publish/dotnet.native.wasm --all-features --strip-dwarf --strip-debug --vacuum`
4+
4. Run `wasm-opt bin/Release/net10.0/browser-wasm/publish/dotnet.native.wasm -O3 -o bin/Release/net10.0/browser-wasm/publish/dotnet.native.wasm --all-features --strip-dwarf --strip-debug --vacuum`
55

66
https://github.com/dotnet/runtime/issues/113979#issuecomment-2759220563

samples/bench/dotnet/DotNet.csproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
3-
<TargetFramework>net9.0</TargetFramework>
3+
<TargetFramework>net10.0</TargetFramework>
4+
<OutputType>Exe</OutputType>
45
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
56
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
67
<RunAOTCompilation>true</RunAOTCompilation>

samples/bench/dotnet/init.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { dotnet } from "./bin/Release/net9.0/browser-wasm/AppBundle/_framework/dotnet.js";
1+
import { dotnet } from "./bin/Release/net10.0/browser-wasm/AppBundle/_framework/dotnet.js";
22
import { getNumber, getStruct } from "../fixtures.mjs";
33

44
/** @returns {Promise<import("../bench.mjs").Exports>} */

samples/bench/dotnet/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
1. Install .NET https://dotnet.microsoft.com/en-us/download
22
2. Install Binaryen https://github.com/WebAssembly/binaryen
33
3. Run `dotnet publish`
4-
4. Run `wasm-opt bin/Release/net9.0/browser-wasm/publish/dotnet.native.wasm -O3 -o bin/Release/net9.0/browser-wasm/publish/dotnet.native.wasm --all-features --strip-dwarf --strip-debug --vacuum`
4+
4. Run `wasm-opt bin/Release/net10.0/browser-wasm/AppBundle/_framework/dotnet.native.wasm -O3 -o bin/Release/net10.0/browser-wasm/AppBundle/_framework/dotnet.native.wasm --all-features --strip-dwarf --strip-debug --vacuum`

samples/bench/readme.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,11 @@ All results are relative to the Rust baseline (lower is better).
1919
| Fibonacci | `1.0` | `0.9` | `1.0` | `1.0` | `1.6` | `3.7` |
2020
| Echo Number | `1.0` | `0.8` | `1.6` | `14.0` | `23.5` | `718.7` |
2121
| Echo Struct | `1.0` | `1.0` | `2.0` | `2.5` | `5.9` | `15.2` |
22+
23+
## 2025 (.NET 10, Node.js 24)
24+
25+
| | Rust | Zig | .NET LLVM | Bootsharp | .NET AOT | Go |
26+
|-------------|-------|-------|-----------|-----------|----------|---------|
27+
| Fibonacci | `1.0` | `2.0` | `1.2` | `1.2` | `2.1` | `6.1` |
28+
| Echo Number | `1.0` | `0.9` | `1.6` | `19.1` | `28.6` | `1057.0` |
29+
| Echo Struct | `1.0` | `1.2` | `1.9` | `2.5` | `6.3` | `18.8` |

samples/minimal/cs/Minimal.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<RuntimeIdentifier>browser-wasm</RuntimeIdentifier>
66
</PropertyGroup>
77

samples/react/backend/Backend.Prime/Backend.Prime.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
4+
<TargetFramework>net10.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
</PropertyGroup>

0 commit comments

Comments
 (0)