Show / Hide Table of Contents

Class WasmRuntime

Inheritance
Object
Runtime
WasmRuntime
Implements
IEquatable<Runtime>
IEquatable<WasmRuntime>
Inherited Members
Runtime.Name
Runtime.RuntimeMoniker
Runtime.MsBuildMoniker
Runtime.IsAOT
Runtime.ToString()
Runtime.Equals(Runtime)
Namespace: BenchmarkDotNet.Environments
Assembly: BenchmarkDotNet.dll
Syntax
public class WasmRuntime : Runtime, IEquatable<Runtime>, IEquatable<WasmRuntime>

Constructors

WasmRuntime(String, String, String, String, Boolean, String, RuntimeMoniker)

creates new instance of WasmRuntime

Declaration
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
Type Name Description
String msBuildMoniker

moniker, default: "net5.0"

String displayName

default: "Wasm"

String javaScriptEngine

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

String javaScriptEngineArguments

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

Boolean aot

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

String wasmDataDir

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

RuntimeMoniker moniker

Runtime moniker

Properties

Aot

Declaration
public bool Aot { get; }
Property Value
Type Description
Boolean

JavaScriptEngine

Declaration
public string JavaScriptEngine { get; }
Property Value
Type Description
String

JavaScriptEngineArguments

Declaration
public string JavaScriptEngineArguments { get; }
Property Value
Type Description
String

WasmDataDir

Declaration
public string WasmDataDir { get; }
Property Value
Type Description
String

Methods

Equals(WasmRuntime)

Declaration
public bool Equals(WasmRuntime other)
Parameters
Type Name Description
WasmRuntime other
Returns
Type Description
Boolean

Equals(Object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
Boolean
Overrides
Runtime.Equals(Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Runtime.GetHashCode()

Implements

System.IEquatable<T>
System.IEquatable<T>
In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors