PNetMark Classes

PNetMark Namespace

PNetMark Namespace

PNetMark.FloatBenchmark Class
PNetMark.IBenchmark Interface
PNetMark.LogicBenchmark Class
PNetMark.LoopBenchmark Class
PNetMark.MethodBenchmark Class
PNetMark.PNetMark Class
PNetMark.RunBenchmark Class
PNetMark.SieveBenchmark Class
PNetMark.StopWatch Class
PNetMark.StringBenchmark Class
PNetMark.Version Class

PNetMark.FloatBenchmark Class

public class FloatBenchmark: IBenchmark

Base Types

System.Object
  FloatBenchmark

This type implements IBenchmark.

Summary

The FloatBenchmark class implements the IBenchmark interface, and runs number of floating-point tests.

See Also

PNetMark Namespace

Members

FloatBenchmark Constructors

FloatBenchmark Constructor

FloatBenchmark Methods

FloatBenchmark.CleanUp Method
FloatBenchmark.Initialize Method
FloatBenchmark.Run Method

FloatBenchmark Fields

FloatBenchmark.maxDegrees Field
FloatBenchmark.vA Field
FloatBenchmark.vB Field
FloatBenchmark.xA Field

FloatBenchmark Properties

FloatBenchmark.Magnification Property
FloatBenchmark.Name Property


FloatBenchmark Constructor

public FloatBenchmark();

Summary

Construct a new FloatBenchmark instance.

See Also

PNetMark.FloatBenchmark Class, PNetMark Namespace

FloatBenchmark.CleanUp Method

public void CleanUp();

Summary

Clean up after the benchmark has been run.

See Also

PNetMark.FloatBenchmark Class, PNetMark Namespace

FloatBenchmark.Initialize Method

public bool Initialize(int size);

Summary

Initialize the benchmark to run on this system.

Parameters

size
A value that indicates the size of the benchmark to run. This should be zero to use the default value.

Return Value

Returns true if the benchmark could be initialized, or false otherwise.

See Also

PNetMark.FloatBenchmark Class, PNetMark Namespace

FloatBenchmark.Run Method

public void Run();

Summary

Run the benchmark.

See Also

PNetMark.FloatBenchmark Class, PNetMark Namespace

FloatBenchmark.maxDegrees Field

public int maxDegrees

See Also

PNetMark.FloatBenchmark Class, PNetMark Namespace

FloatBenchmark.vA Field

public double[,] vA

See Also

PNetMark.FloatBenchmark Class, PNetMark Namespace

FloatBenchmark.vB Field

public double[,] vB

See Also

PNetMark.FloatBenchmark Class, PNetMark Namespace

FloatBenchmark.xA Field

public double[,] xA

See Also

PNetMark.FloatBenchmark Class, PNetMark Namespace

FloatBenchmark.Magnification Property

public int Magnification { get; }

Summary

Get the magnification factor for test scoring.

Property Value

The magnification factor.

See Also

PNetMark.FloatBenchmark Class, PNetMark Namespace

FloatBenchmark.Name Property

public System.String Name { get; }

Summary

Get the name of the benchmark.

Property Value

A System.String that contains the name of the benchmark.

See Also

PNetMark.FloatBenchmark Class, PNetMark Namespace

PNetMark.IBenchmark Interface

public abstract interface IBenchmark

Summary

The IBenchmark interface is implemented by classes that wish to provide benchmarking facilities.

See Also

PNetMark Namespace

Members

IBenchmark Methods

IBenchmark.CleanUp Method
IBenchmark.Initialize Method
IBenchmark.Run Method

IBenchmark Properties

IBenchmark.Magnification Property
IBenchmark.Name Property


IBenchmark.CleanUp Method

public virtual abstract void CleanUp();

Summary

Clean up after the benchmark has been run.

See Also

PNetMark.IBenchmark Interface, PNetMark Namespace

IBenchmark.Initialize Method

public virtual abstract bool Initialize(int size);

Summary

Initialize the benchmark to run on this system.

Parameters

size
A value that indicates the size of the benchmark to run. This should be zero to use the default value.

Return Value

Returns true if the benchmark could be initialized, or false otherwise.

See Also

PNetMark.IBenchmark Interface, PNetMark Namespace

IBenchmark.Run Method

public virtual abstract void Run();

Summary

Run the benchmark.

See Also

PNetMark.IBenchmark Interface, PNetMark Namespace

IBenchmark.Magnification Property

public virtual abstract int Magnification { get; }

Summary

Get the magnification factor for test scoring.

Property Value

The magnification factor.

See Also

PNetMark.IBenchmark Interface, PNetMark Namespace

IBenchmark.Name Property

public virtual abstract System.String Name { get; }

Summary

Get the name of the benchmark.

Property Value

A System.String that contains the name of the benchmark.

See Also

PNetMark.IBenchmark Interface, PNetMark Namespace

PNetMark.LogicBenchmark Class

public class LogicBenchmark: IBenchmark

Base Types

System.Object
  LogicBenchmark

This type implements IBenchmark.

Summary

The LogicBenchmark class implements the IBenchmark interface, and runs number of logic tests.

See Also

PNetMark Namespace

Members

LogicBenchmark Constructors

LogicBenchmark Constructor

LogicBenchmark Methods

LogicBenchmark.CleanUp Method
LogicBenchmark.Initialize Method
LogicBenchmark.Run Method

LogicBenchmark Fields

LogicBenchmark.numIterations Field

LogicBenchmark Properties

LogicBenchmark.Magnification Property
LogicBenchmark.Name Property


LogicBenchmark Constructor

public LogicBenchmark();

Summary

Construct a new LogicBenchmark instance.

See Also

PNetMark.LogicBenchmark Class, PNetMark Namespace

LogicBenchmark.CleanUp Method

public void CleanUp();

Summary

Clean up after the benchmark has been run.

See Also

PNetMark.LogicBenchmark Class, PNetMark Namespace

LogicBenchmark.Initialize Method

public bool Initialize(int size);

Summary

Initialize the benchmark to run on this system.

Parameters

size
A value that indicates the size of the benchmark to run. This should be zero to use the default value.

Return Value

Returns true if the benchmark could be initialized, or false otherwise.

See Also

PNetMark.LogicBenchmark Class, PNetMark Namespace

LogicBenchmark.Run Method

public void Run();

Summary

Run the benchmark.

See Also

PNetMark.LogicBenchmark Class, PNetMark Namespace

LogicBenchmark.numIterations Field

public int numIterations

See Also

PNetMark.LogicBenchmark Class, PNetMark Namespace

LogicBenchmark.Magnification Property

public int Magnification { get; }

Summary

Get the magnification factor for test scoring.

Property Value

The magnification factor.

See Also

PNetMark.LogicBenchmark Class, PNetMark Namespace

LogicBenchmark.Name Property

public System.String Name { get; }

Summary

Get the name of the benchmark.

Property Value

A System.String that contains the name of the benchmark.

See Also

PNetMark.LogicBenchmark Class, PNetMark Namespace

PNetMark.LoopBenchmark Class

public class LoopBenchmark: IBenchmark

Base Types

System.Object
  LoopBenchmark

This type implements IBenchmark.

Summary

The LoopBenchmark class implements the IBenchmark interface to test the looping facilities of the runtime engine.

See Also

PNetMark Namespace

Members

LoopBenchmark Constructors

LoopBenchmark Constructor

LoopBenchmark Methods

LoopBenchmark.CleanUp Method
LoopBenchmark.Initialize Method
LoopBenchmark.Run Method

LoopBenchmark Fields

LoopBenchmark.count Field
LoopBenchmark.dummy Field
LoopBenchmark.fibs Field

LoopBenchmark Properties

LoopBenchmark.Magnification Property
LoopBenchmark.Name Property


LoopBenchmark Constructor

public LoopBenchmark();

Summary

Construct a new LoopBenchmark instance.

See Also

PNetMark.LoopBenchmark Class, PNetMark Namespace

LoopBenchmark.CleanUp Method

public void CleanUp();

Summary

Clean up after the benchmark has been run.

See Also

PNetMark.LoopBenchmark Class, PNetMark Namespace

LoopBenchmark.Initialize Method

public bool Initialize(int size);

Summary

Initialize the benchmark to run on this system.

Parameters

size
A value that indicates the size of the benchmark to run. This should be zero to use the default value.

Return Value

Returns true if the benchmark could be initialized, or false otherwise.

See Also

PNetMark.LoopBenchmark Class, PNetMark Namespace

LoopBenchmark.Run Method

public void Run();

Summary

Run the benchmark.

See Also

PNetMark.LoopBenchmark Class, PNetMark Namespace

LoopBenchmark.count Field

public int count

See Also

PNetMark.LoopBenchmark Class, PNetMark Namespace

LoopBenchmark.dummy Field

public int dummy

See Also

PNetMark.LoopBenchmark Class, PNetMark Namespace

LoopBenchmark.fibs Field

public int[] fibs

See Also

PNetMark.LoopBenchmark Class, PNetMark Namespace

LoopBenchmark.Magnification Property

public int Magnification { get; }

Summary

Get the magnification factor for test scoring.

Property Value

The magnification factor.

See Also

PNetMark.LoopBenchmark Class, PNetMark Namespace

LoopBenchmark.Name Property

public System.String Name { get; }

Summary

Get the name of the benchmark.

Property Value

A System.String that contains the name of the benchmark.

See Also

PNetMark.LoopBenchmark Class, PNetMark Namespace

PNetMark.MethodBenchmark Class

public class MethodBenchmark: IBenchmark

Base Types

System.Object
  MethodBenchmark

This type implements IBenchmark.

Summary

The MethodBenchmark class implements the IBenchmark interface, and runs number of method tests.

See Also

PNetMark Namespace

Members

MethodBenchmark Constructors

MethodBenchmark Constructor

MethodBenchmark Methods

MethodBenchmark.ArithmeticSeries Method
MethodBenchmark.CleanUp Method
MethodBenchmark.Initialize Method
MethodBenchmark.NotInlineableSeries Method
MethodBenchmark.Run Method

MethodBenchmark Fields

MethodBenchmark.depthCount Field
MethodBenchmark.numIterations Field

MethodBenchmark Properties

MethodBenchmark.Magnification Property
MethodBenchmark.Name Property


MethodBenchmark Constructor

public MethodBenchmark();

Summary

Construct a new MethodBenchmark instance.

See Also

PNetMark.MethodBenchmark Class, PNetMark Namespace

MethodBenchmark.ArithmeticSeries Method

public int ArithmeticSeries(int iter);

Summary

Compute an arithmetic series.

Return Value

Returns the result of the series.

See Also

PNetMark.MethodBenchmark Class, PNetMark Namespace

MethodBenchmark.CleanUp Method

public void CleanUp();

Summary

Clean up after the benchmark has been run.

See Also

PNetMark.MethodBenchmark Class, PNetMark Namespace

MethodBenchmark.Initialize Method

public bool Initialize(int size);

Summary

Initialize the benchmark to run on this system.

Parameters

size
A value that indicates the size of the benchmark to run. This should be zero to use the default value.

Return Value

Returns true if the benchmark could be initialized, or false otherwise.

See Also

PNetMark.MethodBenchmark Class, PNetMark Namespace

MethodBenchmark.NotInlineableSeries Method

public int NotInlineableSeries(int iter);

Summary

Compute an arithmetic series, and attempt to disable JIT inlining.

Return Value

Returns the result of the series.

See Also

PNetMark.MethodBenchmark Class, PNetMark Namespace

MethodBenchmark.Run Method

public void Run();

Summary

Run the benchmark.

See Also

PNetMark.MethodBenchmark Class, PNetMark Namespace

MethodBenchmark.depthCount Field

public int depthCount

See Also

PNetMark.MethodBenchmark Class, PNetMark Namespace

MethodBenchmark.numIterations Field

public int numIterations

See Also

PNetMark.MethodBenchmark Class, PNetMark Namespace

MethodBenchmark.Magnification Property

public int Magnification { get; }

Summary

Get the magnification factor for test scoring.

Property Value

The magnification factor.

See Also

PNetMark.MethodBenchmark Class, PNetMark Namespace

MethodBenchmark.Name Property

public System.String Name { get; }

Summary

Get the name of the benchmark.

Property Value

A System.String that contains the name of the benchmark.

See Also

PNetMark.MethodBenchmark Class, PNetMark Namespace

PNetMark.PNetMark Class

public class PNetMark

Base Types

System.Object
  PNetMark

Summary

The PNetMark class is the main entry point for the Portable.NET benchmark.

See Also

PNetMark Namespace

Members

PNetMark Constructors

PNetMark Constructor

PNetMark Methods

PNetMark.Main Method
PNetMark.Run Method


PNetMark Constructor

public PNetMark();

See Also

PNetMark.PNetMark Class, PNetMark Namespace

PNetMark.Main Method

public static int Main(System.String[] args);

Summary

Main entry point for the Portable.NET benchmark.

Return Value

Returns the exit status for the process, which is 1 if an error occurred.

See Also

PNetMark.PNetMark Class, PNetMark Namespace

PNetMark.Run Method

public int Run(System.String[] args);

Summary

Run the Portable.NET benchmark.

Return Value

Returns the exit status for the process, which is non-zero if an error occurred.

See Also

PNetMark.PNetMark Class, PNetMark Namespace

PNetMark.RunBenchmark Class

public class RunBenchmark

Base Types

System.Object
  RunBenchmark

Summary

The RunBenchmark class executes a particular benchmark and determines its score.

See Also

PNetMark Namespace

Members

RunBenchmark Constructors

RunBenchmark Constructor

RunBenchmark Methods

RunBenchmark.GetScore Method

RunBenchmark Properties

RunBenchmark.Name Property


RunBenchmark Constructor

public RunBenchmark(PNetMark.IBenchmark benchmark);

Summary

Construct a new RunBenchmark instance.

Parameters

benchmark
The benchmark to be executed.

See Also

PNetMark.RunBenchmark Class, PNetMark Namespace

RunBenchmark.GetScore Method

public int GetScore();

Summary

Determine the test score for this benchmark.

Return Value

Returns the score value, or -1 if the benchmark ran too fast for its score to be measured.

See Also

PNetMark.RunBenchmark Class, PNetMark Namespace

RunBenchmark.Name Property

public System.String Name { get; }

Summary

Get the name of the benchmark.

Property Value

A System.String that contains the name of the benchmark.

See Also

PNetMark.RunBenchmark Class, PNetMark Namespace

PNetMark.SieveBenchmark Class

public class SieveBenchmark: IBenchmark

Base Types

System.Object
  SieveBenchmark

This type implements IBenchmark.

Summary

The SieveBenchmark class implements the IBenchmark interface, and runs a prime number sieve.

See Also

PNetMark Namespace

Members

SieveBenchmark Constructors

SieveBenchmark Constructor

SieveBenchmark Methods

SieveBenchmark.CleanUp Method
SieveBenchmark.Initialize Method
SieveBenchmark.Run Method

SieveBenchmark Fields

SieveBenchmark.maxPrime Field
SieveBenchmark.primes Field

SieveBenchmark Properties

SieveBenchmark.Magnification Property
SieveBenchmark.Name Property


SieveBenchmark Constructor

public SieveBenchmark();

Summary

Construct a new SieveBenchmark instance.

See Also

PNetMark.SieveBenchmark Class, PNetMark Namespace

SieveBenchmark.CleanUp Method

public void CleanUp();

Summary

Clean up after the benchmark has been run.

See Also

PNetMark.SieveBenchmark Class, PNetMark Namespace

SieveBenchmark.Initialize Method

public bool Initialize(int size);

Summary

Initialize the benchmark to run on this system.

Parameters

size
A value that indicates the size of the benchmark to run. This should be zero to use the default value.

Return Value

Returns true if the benchmark could be initialized, or false otherwise.

See Also

PNetMark.SieveBenchmark Class, PNetMark Namespace

SieveBenchmark.Run Method

public void Run();

Summary

Run the benchmark.

See Also

PNetMark.SieveBenchmark Class, PNetMark Namespace

SieveBenchmark.maxPrime Field

public int maxPrime

See Also

PNetMark.SieveBenchmark Class, PNetMark Namespace

SieveBenchmark.primes Field

public int[] primes

See Also

PNetMark.SieveBenchmark Class, PNetMark Namespace

SieveBenchmark.Magnification Property

public int Magnification { get; }

Summary

Get the magnification factor for test scoring.

Property Value

The magnification factor.

See Also

PNetMark.SieveBenchmark Class, PNetMark Namespace

SieveBenchmark.Name Property

public System.String Name { get; }

Summary

Get the name of the benchmark.

Property Value

A System.String that contains the name of the benchmark.

See Also

PNetMark.SieveBenchmark Class, PNetMark Namespace

PNetMark.StopWatch Class

public class StopWatch

Base Types

System.Object
  StopWatch

Summary

The StopWatch class provides a facility to measure the elapsed time of a benchmark.

See Also

PNetMark Namespace

Members

StopWatch Constructors

StopWatch Constructor

StopWatch Methods

StopWatch.Clear Method
StopWatch.Start Method
StopWatch.Stop Method

StopWatch Properties

StopWatch.Elapsed Property


StopWatch Constructor

public StopWatch();

Summary

Construct a new StopWatch instance.

See Also

PNetMark.StopWatch Class, PNetMark Namespace

StopWatch.Clear Method

public void Clear();

Summary

Clear the stop-watch state. If the stop-watch is running, then it will start measuring again from the current time.

See Also

PNetMark.StopWatch Class, PNetMark Namespace

StopWatch.Start Method

public void Start();

Summary

Start the stop-watch running.

See Also

PNetMark.StopWatch Class, PNetMark Namespace

StopWatch.Stop Method

public void Stop();

Summary

Stop the stop-watch running.

See Also

PNetMark.StopWatch Class, PNetMark Namespace

StopWatch.Elapsed Property

public System.TimeSpan Elapsed { get; }

Summary

Get the elapsed time. The value will be only as accurate as the "Now" property in System.DateTime. The accuracy of that value is system-dependent.

Property Value

The elapsed time in ticks.

See Also

PNetMark.StopWatch Class, PNetMark Namespace

PNetMark.StringBenchmark Class

public class StringBenchmark: IBenchmark

Base Types

System.Object
  StringBenchmark

This type implements IBenchmark.

Summary

The StringBenchmark class implements the IBenchmark interface, and runs number of string tests.

See Also

PNetMark Namespace

Members

StringBenchmark Constructors

StringBenchmark Constructor

StringBenchmark Methods

StringBenchmark.CleanUp Method
StringBenchmark.Initialize Method
StringBenchmark.Run Method

StringBenchmark Fields

StringBenchmark.numIterations Field
StringBenchmark.pattern1 Field
StringBenchmark.pattern2 Field
StringBenchmark.pattern3 Field

StringBenchmark Properties

StringBenchmark.Magnification Property
StringBenchmark.Name Property


StringBenchmark Constructor

public StringBenchmark();

Summary

Construct a new StringBenchmark instance.

See Also

PNetMark.StringBenchmark Class, PNetMark Namespace

StringBenchmark.CleanUp Method

public void CleanUp();

Summary

Clean up after the benchmark has been run.

See Also

PNetMark.StringBenchmark Class, PNetMark Namespace

StringBenchmark.Initialize Method

public bool Initialize(int size);

Summary

Initialize the benchmark to run on this system.

Parameters

size
A value that indicates the size of the benchmark to run. This should be zero to use the default value.

Return Value

Returns true if the benchmark could be initialized, or false otherwise.

See Also

PNetMark.StringBenchmark Class, PNetMark Namespace

StringBenchmark.Run Method

public void Run();

Summary

Run the benchmark.

See Also

PNetMark.StringBenchmark Class, PNetMark Namespace

StringBenchmark.numIterations Field

public int numIterations

See Also

PNetMark.StringBenchmark Class, PNetMark Namespace

StringBenchmark.pattern1 Field

public System.String pattern1

See Also

PNetMark.StringBenchmark Class, PNetMark Namespace

StringBenchmark.pattern2 Field

public System.String pattern2

See Also

PNetMark.StringBenchmark Class, PNetMark Namespace

StringBenchmark.pattern3 Field

public System.String pattern3

See Also

PNetMark.StringBenchmark Class, PNetMark Namespace

StringBenchmark.Magnification Property

public int Magnification { get; }

Summary

Get the magnification factor for test scoring.

Property Value

The magnification factor.

See Also

PNetMark.StringBenchmark Class, PNetMark Namespace

StringBenchmark.Name Property

public System.String Name { get; }

Summary

Get the name of the benchmark.

Property Value

A System.String that contains the name of the benchmark.

See Also

PNetMark.StringBenchmark Class, PNetMark Namespace

PNetMark.Version Class

public sealed class Version

Base Types

System.Object
  Version

Summary

The Version class defines the version number for the Portable.NET benchmark.

See Also

PNetMark Namespace

Members

Version Constructors

Version Constructor

Version Fields

Version.VersionString Field


Version Constructor

public Version();

See Also

PNetMark.Version Class, PNetMark Namespace

Version.VersionString Field

public static readonly System.String VersionString

See Also

PNetMark.Version Class, PNetMark Namespace