Skip to content

Latest commit

 

History

History
29 lines (23 loc) · 886 Bytes

README.md

File metadata and controls

29 lines (23 loc) · 886 Bytes

Micro-benchmarks for node-api-dotnet APIs

This project contains a set of micro-benchmarks for .NET + JS interop operations, driven by BenchmarkDotNet. Most benchmarks run in both CLR and AOT modes, though the "Dynamic" benchmarks are CLR-only.

⚠️ The benchmarks currently depend on a special branch build of libnode being present at ../bin/<rid>. This should be resolved with #107.

Run all benchmarks

dotnet run -c Release -f net8.0 --filter *

Run only CLR or only AOT benchmarks

dotnet run -c Release -f net8.0 --filter *clr.*
dotnet run -c Release -f net8.0 --filter *aot.*

Run a specific benchmark

dotnet run -c Release -f net8.0 --filter *clr.CallDotnetFunction

List benchmarks

dotnet run -c Release -f net8.0 --list flat