Aaron Stannard

Results 690 comments of Aaron Stannard

Could potentially re-use the timers we have for timing measurements for this.

Here's your problem: ``` context.GetCounter("Counter_Logger_DB"); ``` You need to declare a `CounterMeasurement` or `CounterThroughputAssertion` for **every** counter.

@tigerclawn82 good feedback. Let me put an example on this thread real quick.

``` csharp public class TcpServerSocketChannelHorizontalScaleSpec { static TcpServerSocketChannelHorizontalScaleSpec() { // Disable the logging factory LoggingFactory.DefaultFactory = new NoOpLoggerFactory(); } private static readonly IPEndPoint TEST_ADDRESS = new IPEndPoint(IPAddress.IPv6Loopback, 0); protected ClientBootstrap...

Multiple test methods: ``` csharp /// /// Performance specifications for /// public class ActorPathSpec { private const string ParseThroughputCounterName = "ParseOp"; private const double MinimumAcceptableOperationsPerSecond = 1000000.0d; //million op /...

Sorry, took me a bit longer to grab the second one - had to open a different project up :p

@tigerclawn82, ah, in that case you just need to make sure that you assign `Counter_Logger_Db` to the correct `Counter` instance. Might be easier to break those up into separate classes.

@tigerclawn82 You're welcome! In a future release we're going to be adding something similar to XUnit Theories which might be able to help reduce the amount of code you have...

This is not possible to do with NBench currently because it's stateful - you need to have something that retains the state of one benchmark and can use it as...