Skip to content

Commit

Permalink
Benchmarks: cleanup benchmark class names
Browse files Browse the repository at this point in the history
Mainly to remove the database name

Closes #19874
  • Loading branch information
roji committed May 2, 2020
1 parent aeee2bc commit cf40b08
Show file tree
Hide file tree
Showing 20 changed files with 18 additions and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,26 +117,22 @@ public virtual void Update()
}

[SingleRunJob]
[Description("AutoDetectChanges=True")]
public class AddDataVariationsWithAutoDetectChangesOn : AddDataVariations
{
protected override bool AutoDetectChanges => true;
}

[SingleRunJob]
[Description("AutoDetectChanges=True")]
public class ExistingDataVariationsWithAutoDetectChangesOn : ExistingDataVariations
{
protected override bool AutoDetectChanges => true;
}

[Description("AutoDetectChanges=False")]
public class AddDataVariationsWithAutoDetectChangesOff : AddDataVariations
{
protected override bool AutoDetectChanges => false;
}

[Description("AutoDetectChanges=False")]
public class ExistingDataVariationsWithAutoDetectChangesOff : ExistingDataVariations
{
protected override bool AutoDetectChanges => false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,26 +123,22 @@ public virtual void QueryChildren()
}

[SingleRunJob]
[Description("AutoDetectChanges=True")]
public class ChildVariationsWithAutoDetectChangesOn : ChildVariations
{
protected override bool AutoDetectChanges => true;
}

[SingleRunJob]
[Description("AutoDetectChanges=True")]
public class ParentVariationsWithAutoDetectChangesOn : ParentVariations
{
protected override bool AutoDetectChanges => true;
}

[Description("AutoDetectChanges=False")]
public class ChildVariationsWithAutoDetectChangesOff : ChildVariations
{
protected override bool AutoDetectChanges => false;
}

[Description("AutoDetectChanges=False")]
public class ParentVariationsWithAutoDetectChangesOff : ParentVariations
{
protected override bool AutoDetectChanges => false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Initialization
{
[DisplayName("InitializationTests")]
public abstract class InitializationTests
public abstract class InitializationBase
{
protected abstract AdventureWorksContextBase CreateContext();
protected abstract ConventionSet CreateConventionSet();
Expand Down
3 changes: 1 addition & 2 deletions benchmark/EFCore.Benchmarks/Query/FuncletizationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
[DisplayName(nameof(FuncletizationTests))]
public abstract class FuncletizationTests
public abstract class FuncletizationBase
{
private OrdersContextBase _context;

Expand Down
3 changes: 1 addition & 2 deletions benchmark/EFCore.Benchmarks/Query/NavigationsQueryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
[DisplayName(nameof(NavigationsQueryTests))]
public abstract class NavigationsQueryTests
public abstract class NavigationsQueryBase
{
private AdventureWorksContextBase _context;
private IQueryable<Store> _query;
Expand Down
3 changes: 1 addition & 2 deletions benchmark/EFCore.Benchmarks/Query/QueryCompilationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
[DisplayName(nameof(QueryCompilationTests))]
public abstract class QueryCompilationTests
public abstract class QueryCompilationBase
{
public const int OperationsPerInvoke = 10;

Expand Down
3 changes: 1 addition & 2 deletions benchmark/EFCore.Benchmarks/Query/RawSqlQueryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
[DisplayName(nameof(RawSqlQueryTests))]
public abstract class RawSqlQueryTests
public abstract class RawSqlQueryBase
{
private OrdersContextBase _context;

Expand Down
3 changes: 1 addition & 2 deletions benchmark/EFCore.Benchmarks/Query/SimpleQueryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
[DisplayName(nameof(SimpleQueryTests))]
public abstract class SimpleQueryTests
public abstract class SimpleQueryBase
{
private OrdersContextBase _context;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Initialization
{
public class InitializationSqlServerTests : InitializationTests
public class Initialization : InitializationBase
{
protected override AdventureWorksContextBase CreateContext() => AdventureWorksSqlServerFixture.CreateContext();
protected override ConventionSet CreateConventionSet() => SqlServerConventionSetBuilder.Build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
public class FuncletizationSqlServerTests : FuncletizationTests
public class Funcletization : FuncletizationBase
{
protected override OrdersFixtureBase CreateFixture()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
public class NavigationsQuerySqlServerTests : NavigationsQueryTests
public class NavigationsQuery : NavigationsQueryBase
{
protected override AdventureWorksContextBase CreateContext()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
public class QueryCompilationSqlServerTests : QueryCompilationTests
public class QueryCompilation : QueryCompilationBase
{
public override IServiceCollection AddProviderServices(IServiceCollection services)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
public class RawSqlQuerySqlServerTests : RawSqlQueryTests
public class RawSqlQuery : RawSqlQueryBase
{
protected override string StoredProcedureCreationScript
=> @"CREATE PROCEDURE dbo.SearchProducts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
public class SimpleQuerySqlServerTests : SimpleQueryTests
public class SimpleQuery : SimpleQueryBase
{
protected override OrdersFixtureBase CreateFixture()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Initialization
{
public class InitializationSqliteTests : InitializationTests
public class Initialization : InitializationBase
{
protected override AdventureWorksContextBase CreateContext()=> AdventureWorksSqliteFixture.CreateContext();
protected override ConventionSet CreateConventionSet() => SqliteConventionSetBuilder.Build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
public class FuncletizationSqliteTests : FuncletizationTests
public class Funcletization : FuncletizationBase
{
protected override OrdersFixtureBase CreateFixture()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
public class NavigationsQuerySqliteTests : NavigationsQueryTests
public class NavigationsQuery : NavigationsQueryBase
{
protected override AdventureWorksContextBase CreateContext()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
public class QueryCompilationSqliteTests : QueryCompilationTests
public class QueryCompilationSqliteTests : QueryCompilationBase
{
public override IServiceCollection AddProviderServices(IServiceCollection services)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
public class RawSqlQuerySqliteTests : RawSqlQueryTests
public class RawSqlQuery : RawSqlQueryBase
{
protected override string StoredProcedureCreationScript
=> @"";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Microsoft.EntityFrameworkCore.Benchmarks.Query
{
public class SimpleQuerySqliteTests : SimpleQueryTests
public class SimpleQuery : SimpleQueryBase
{
protected override OrdersFixtureBase CreateFixture()
{
Expand Down

0 comments on commit cf40b08

Please sign in to comment.