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
msBuildMonikerstringmoniker, default: "net5.0"
displayNamestringdefault: "Wasm"
javaScriptEnginestringFull path to a java script engine used to run the benchmarks. "v8" by default
javaScriptEngineArgumentsstringArguments for the javascript engine. "--expose_wasm" by default
aotboolSpecifies whether AOT or Interpreter (default) project should be generated.
wasmDataDirstringSpecifies a wasm data directory surfaced as $(WasmDataDir) for the project
monikerRuntimeMonikerRuntime moniker
Properties
Aot
public bool Aot { get; }
Property Value
JavaScriptEngine
public string JavaScriptEngine { get; }
Property Value
JavaScriptEngineArguments
public string JavaScriptEngineArguments { get; }
Property Value
WasmDataDir
public string WasmDataDir { get; }
Property Value
Methods
Equals(WasmRuntime)
public bool Equals(WasmRuntime other)
Parameters
otherWasmRuntime
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()