Skip to content

Commit

Permalink
Updated benchmark project
Browse files Browse the repository at this point in the history
  • Loading branch information
TomPallister committed Oct 30, 2016
1 parent 2474a02 commit c31a1ba
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 259 deletions.
12 changes: 6 additions & 6 deletions Ocelot.sln
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Ocelot.AcceptanceTests", "t
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Ocelot.ManualTest", "test\Ocelot.ManualTest\Ocelot.ManualTest.xproj", "{02BBF4C5-517E-4157-8D21-4B8B9E118B7A}"
EndProject
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Ocelot.Benchmarks", "test\Ocelot.Benchmarks\Ocelot.Benchmarks.xproj", "{AB3E458C-FD76-4DEE-8DCE-EEB5BA840AF6}"
Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Ocelot.Benchmarks", "test\Ocelot.Benchmarks\Ocelot.Benchmarks.xproj", "{106B49E6-95F6-4A7B-B81C-96BFA74AF035}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -54,10 +54,10 @@ Global
{02BBF4C5-517E-4157-8D21-4B8B9E118B7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{02BBF4C5-517E-4157-8D21-4B8B9E118B7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{02BBF4C5-517E-4157-8D21-4B8B9E118B7A}.Release|Any CPU.Build.0 = Release|Any CPU
{AB3E458C-FD76-4DEE-8DCE-EEB5BA840AF6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AB3E458C-FD76-4DEE-8DCE-EEB5BA840AF6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AB3E458C-FD76-4DEE-8DCE-EEB5BA840AF6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AB3E458C-FD76-4DEE-8DCE-EEB5BA840AF6}.Release|Any CPU.Build.0 = Release|Any CPU
{106B49E6-95F6-4A7B-B81C-96BFA74AF035}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{106B49E6-95F6-4A7B-B81C-96BFA74AF035}.Debug|Any CPU.Build.0 = Debug|Any CPU
{106B49E6-95F6-4A7B-B81C-96BFA74AF035}.Release|Any CPU.ActiveCfg = Release|Any CPU
{106B49E6-95F6-4A7B-B81C-96BFA74AF035}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -67,6 +67,6 @@ Global
{54E84F1A-E525-4443-96EC-039CBD50C263} = {5B401523-36DA-4491-B73A-7590A26E420B}
{F8C224FE-36BE-45F5-9B0E-666D8F4A9B52} = {5B401523-36DA-4491-B73A-7590A26E420B}
{02BBF4C5-517E-4157-8D21-4B8B9E118B7A} = {5B401523-36DA-4491-B73A-7590A26E420B}
{AB3E458C-FD76-4DEE-8DCE-EEB5BA840AF6} = {5B401523-36DA-4491-B73A-7590A26E420B}
{106B49E6-95F6-4A7B-B81C-96BFA74AF035} = {5B401523-36DA-4491-B73A-7590A26E420B}
EndGlobalSection
EndGlobal
234 changes: 0 additions & 234 deletions test/Ocelot.Benchmarks/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion test/Ocelot.Benchmarks/Ocelot.Benchmarks.xproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" />
<PropertyGroup Label="Globals">
<ProjectGuid>ab3e458c-fd76-4dee-8dce-eeb5ba840af6</ProjectGuid>
<ProjectGuid>106b49e6-95f6-4a7b-b81c-96bfa74af035</ProjectGuid>
<RootNamespace>Ocelot.Benchmarks</RootNamespace>
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath>
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath>
Expand Down
13 changes: 7 additions & 6 deletions test/Ocelot.Benchmarks/Program.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BenchmarkDotNet.Running;
using BenchmarkDotNet.Running;

namespace Ocelot.Benchmarks
{
public class Program
{
public static void Main(string[] args)
{
var summary = BenchmarkRunner.Run<UrlPathToUrlPathTemplateMatcherBenchmarks>();
var switcher = new BenchmarkSwitcher(new[] {
typeof(UrlPathToUrlPathTemplateMatcherBenchmarks),

});

switcher.Run(args);
}
}
}
2 changes: 1 addition & 1 deletion test/Ocelot.Benchmarks/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("ab3e458c-fd76-4dee-8dce-eeb5ba840af6")]
[assembly: Guid("106b49e6-95f6-4a7b-b81c-96bfa74af035")]
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ public class UrlPathToUrlPathTemplateMatcherBenchmarks : ManualConfig

public UrlPathToUrlPathTemplateMatcherBenchmarks()
{
Add(StatisticColumn.AllStatistics);
Add(StatisticColumn.AllStatistics);
}

[Setup]
public void SetUp()
{
Expand Down
14 changes: 5 additions & 9 deletions test/Ocelot.Benchmarks/project.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
{
"version": "1.0.0-*",
"buildOptions": {
"emitEntryPoint": true
},

"dependencies": {
"BenchmarkDotNet": "0.9.9",
"Microsoft.NETCore.App": {
"version": "1.0.1",
"type": "platform"
"type": "platform",
"version": "1.0.1"
},
"Ocelot": "1.0.0-*"
"Ocelot": "1.0.0-*",
"BenchmarkDotNet": "0.9.9"
},

"frameworks": {
Expand All @@ -20,9 +20,5 @@
"portable-net45+win8"
]
}
},

"tooling": {
"defaultNamespace": "Ocelot.Benchmarks"
}
}

0 comments on commit c31a1ba

Please sign in to comment.