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
stringmoniker, default: "net5.0"
displayName
stringdefault: "Wasm"
javaScriptEngine
stringFull path to a java script engine used to run the benchmarks. "v8" by default
javaScriptEngineArguments
stringArguments for the javascript engine. "--expose_wasm" by default
aot
boolSpecifies whether AOT or Interpreter (default) project should be generated.
wasmDataDir
stringSpecifies a wasm data directory surfaced as $(WasmDataDir) for the project
moniker
RuntimeMonikerRuntime 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
other
WasmRuntime
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetHashCode()
public override int GetHashCode()