-
Notifications
You must be signed in to change notification settings - Fork 21
Updated fennecs to 0.4.0-beta #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 7 commits
554bdf6
c3e7114
c3804f4
081bdaa
fc970b4
2a38493
1ec721d
83410b4
ac9b310
8105bcc
c91d691
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
#pragma warning disable CA1852 // Seal internal types | ||
|
||
using System.Collections.Generic; | ||
using System.Globalization; | ||
using System.Linq; | ||
using BenchmarkDotNet.Configs; | ||
using BenchmarkDotNet.Order; | ||
using BenchmarkDotNet.Running; | ||
using Ecs.CSharp.Benchmark; | ||
|
||
|
@@ -14,21 +17,34 @@ | |
|
||
BenchmarkSwitcher benchmark = BenchmarkSwitcher.FromTypes(new[] | ||
{ | ||
typeof(CreateEntityWithOneComponent), | ||
typeof(CreateEntityWithTwoComponents), | ||
typeof(CreateEntityWithThreeComponents), | ||
|
||
typeof(SystemWithOneComponent), | ||
typeof(SystemWithTwoComponents), | ||
typeof(SystemWithThreeComponents), | ||
|
||
typeof(SystemWithTwoComponentsMultipleComposition) | ||
typeof(SystemWithTwoComponentsMultipleComposition), | ||
|
||
//Moving lighter tests to the back makes the estimated time display more reliable | ||
typeof(CreateEntityWithOneComponent), | ||
typeof(CreateEntityWithTwoComponents), | ||
typeof(CreateEntityWithThreeComponents), | ||
}); | ||
|
||
IConfig configuration = DefaultConfig.Instance.WithOptions(ConfigOptions.DisableOptimizationsValidator); | ||
|
||
IConfig configuration = DefaultConfig.Instance | ||
.WithOptions(ConfigOptions.DisableOptimizationsValidator) | ||
.WithCapabilityExclusions(); | ||
|
||
if (args.Length > 0) | ||
{ | ||
// There's no orderer commandline arg, so let's pretend there is one. | ||
if (args.Contains("--ranking")) | ||
{ | ||
List<string> argList = args.ToList(); | ||
argList.Remove("--ranking"); | ||
args = argList.ToArray(); | ||
configuration = configuration.WithOrderer(new DefaultOrderer(SummaryOrderPolicy.FastestToSlowest)); | ||
|
||
} | ||
|
||
benchmark.Run(args, configuration); | ||
} | ||
else | ||
|
Uh oh!
There was an error while loading. Please reload this page.