Skip to content

Commit

Permalink
BenchmarkDotNet.Samples Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyAkinshin committed Jul 25, 2018
1 parent 9ab58a9 commit 3ce9fe9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions samples/BenchmarkDotNet.Samples/IntroArguments.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace BenchmarkDotNet.Samples
public class IntroArguments
{
[Params(true, false)] // Arguments can be combined with Params
public bool AddExtra5Miliseconds;
public bool AddExtra5Milliseconds;

[Benchmark]
[Arguments(100, 10)]
Expand All @@ -15,7 +15,7 @@ public class IntroArguments
[Arguments(200, 20)]
public void Benchmark(int a, int b)
{
if (AddExtra5Miliseconds)
if (AddExtra5Milliseconds)
Thread.Sleep(a + b + 5);
else
Thread.Sleep(a + b);
Expand Down
1 change: 0 additions & 1 deletion samples/BenchmarkDotNet.Samples/IntroArrayParam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Linq;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Code;

namespace BenchmarkDotNet.Samples
{
Expand Down
2 changes: 1 addition & 1 deletion samples/BenchmarkDotNet.Samples/IntroConfigSource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class IntroConfigSource
/// </summary>
private class MyConfigSourceAttribute : Attribute, IConfigSource
{
public IConfig Config { get; private set; }
public IConfig Config { get; }

public MyConfigSourceAttribute(params Jit[] jits)
{
Expand Down
2 changes: 1 addition & 1 deletion samples/BenchmarkDotNet.Samples/IntroJoin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace BenchmarkDotNet.Samples
{
// Run BenchmarkSwither with arguments: "--join --category=IntroJoinA"
// Run BenchmarkSwitcher with arguments: "--join --category=IntroJoinA"

[DryJob]
public class IntroJoin1
Expand Down
2 changes: 1 addition & 1 deletion samples/BenchmarkDotNet.Samples/IntroOutliers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public Config()
}
}

private int counter = 0;
private int counter;

[Benchmark]
public void Foo()
Expand Down
2 changes: 1 addition & 1 deletion samples/BenchmarkDotNet.Samples/IntroPercentiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace BenchmarkDotNet.Samples
public class IntroPercentiles
{
// To share between runs.
// DO NOT do this in production code. The System.Random IS NOT threadsafe.
// DO NOT do this in production code. The System.Random IS NOT thread safe.
private static readonly Random Rnd = new Random();

private class Config : ManualConfig
Expand Down

0 comments on commit 3ce9fe9

Please sign in to comment.