Table of Contents

Class WasmRuntime

Namespace
BenchmarkDotNet.Environments
Assembly
BenchmarkDotNet.dll
public class WasmRuntime : Runtime, IEquatable<Runtime>, IEquatable<WasmRuntime>
Inheritance
WasmRuntime
Implements
Inherited Members

Constructors

WasmRuntime(string, string, string, string, bool, string?, RuntimeMoniker)

creates new instance of WasmRuntime

public WasmRuntime(string msBuildMoniker = "net5.0", string displayName = "Wasm", string javaScriptEngine = "v8", string javaScriptEngineArguments = "--expose_wasm", bool aot = false, string? wasmDataDir = null, RuntimeMoniker moniker = RuntimeMoniker.Wasm)

Parameters

msBuildMoniker string

moniker, default: "net5.0"

displayName string

default: "Wasm"

javaScriptEngine string

Full path to a java script engine used to run the benchmarks. "v8" by default

javaScriptEngineArguments string

Arguments for the javascript engine. "--expose_wasm" by default

aot bool

Specifies whether AOT or Interpreter (default) project should be generated.

wasmDataDir string

Specifies a wasm data directory surfaced as $(WasmDataDir) for the project

moniker RuntimeMoniker

Runtime moniker

Properties

Aot

public bool Aot { get; }

Property Value

bool

JavaScriptEngine

public string JavaScriptEngine { get; }

Property Value

string

JavaScriptEngineArguments

public string JavaScriptEngineArguments { get; }

Property Value

string

WasmDataDir

public string WasmDataDir { get; }

Property Value

string

Methods

Equals(WasmRuntime)

public bool Equals(WasmRuntime other)

Parameters

other WasmRuntime

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int