Skip to content

Commit

Permalink
chore: perf test updates
Browse files Browse the repository at this point in the history
  • Loading branch information
alexyakunin committed Oct 10, 2023
1 parent e91b781 commit 25226d0
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: '3.4'
services:
redis:
image: "redis:6.2.6-alpine3.14"
image: "redis"
ports:
- "6379:6379"
postgres:
image: "postgres:14.0-alpine3.14"
image: "postgres"
environment:
POSTGRES_PASSWORD: "postgres"
POSTGRES_USER: "postgres"
Expand All @@ -14,7 +14,7 @@ services:
- "5432:5432"
entrypoint: ["docker-entrypoint.sh", "-c", "shared_buffers=256MB", "-c", "max_connections=1000"]
mariadb:
image: mariadb
image: "mariadb"
environment:
MYSQL_ROOT_PASSWORD: mariadb
ports:
Expand Down
64 changes: 64 additions & 0 deletions docs/performance-test-results/net8-amd.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
.NET: 8.0.0-rc.1.23419.4
Database: PostgreSql
With Stl.Fusion:
Multiple readers, 1 mutator:
Setup: 384.00M calls (960 readers x 400.00K)
Speed: 143.68M 142.68M 145.95M -> 145.95M calls/s
Single reader, no mutators:
Setup: 8.00M calls (1 readers x 8.00M)
Speed: 9.13M 9.48M 9.54M -> 9.54M calls/s
Without Stl.Fusion:
Multiple readers, 1 mutator:
Setup: 63.36K calls (960 readers x 66.00)
Speed: 12.96K 10.72K 12.09K -> 12.96K calls/s
Single reader, no mutators:
Setup: 1.32K calls (1 readers x 1.32K)
Speed: 940.12 1.02K 1.01K -> 1.02K calls/s

Database: MariaDb
With Stl.Fusion:
Multiple readers, 1 mutator:
Setup: 384.00M calls (960 readers x 400.00K)
Speed: 140.29M 138.80M 139.26M -> 140.29M calls/s
Single reader, no mutators:
Setup: 8.00M calls (1 readers x 8.00M)
Speed: 9.16M 9.28M 9.24M -> 9.28M calls/s
Without Stl.Fusion:
Multiple readers, 1 mutator:
Setup: 63.36K calls (960 readers x 66.00)
Speed: 12.62K 12.18K 14.52K -> 14.52K calls/s
Single reader, no mutators:
Setup: 1.32K calls (1 readers x 1.32K)
Speed: 626.08 606.61 645.77 -> 645.77 calls/s

Database: SqlServer
With Stl.Fusion:
Multiple readers, 1 mutator:
Setup: 384.00M calls (960 readers x 400.00K)
Speed: 137.70M 134.05M 137.42M -> 137.70M calls/s
Single reader, no mutators:
Setup: 8.00M calls (1 readers x 8.00M)
Speed: 8.90M 9.01M 9.05M -> 9.05M calls/s
Without Stl.Fusion:
Multiple readers, 1 mutator:
Setup: 63.36K calls (960 readers x 66.00)
Speed: 16.16K 16.66K 11.20K -> 16.66K calls/s
Single reader, no mutators:
Setup: 1.32K calls (1 readers x 1.32K)
Speed: 854.94 858.63 863.33 -> 863.33 calls/s

Database: Sqlite
With Stl.Fusion:
Multiple readers, 1 mutator:
Setup: 384.00M calls (960 readers x 400.00K)
Speed: 140.36M 141.40M 139.42M -> 141.40M calls/s
Single reader, no mutators:
Setup: 8.00M calls (1 readers x 8.00M)
Speed: 8.82M 8.90M 8.92M -> 8.92M calls/s
Without Stl.Fusion:
Multiple readers, 1 mutator:
Setup: 63.36K calls (960 readers x 66.00)
Speed: 16.50K 15.84K 14.62K -> 16.50K calls/s
Single reader, no mutators:
Setup: 1.32K calls (1 readers x 1.32K)
Speed: 3.53K 3.74K 3.79K -> 3.79K calls/s
2 changes: 1 addition & 1 deletion tests/Stl.Fusion.Tests/FusionTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public abstract class FusionTestBase : RpcTestBase

public FilePath SqliteDbPath { get; protected set; }
public string PostgreSqlConnectionString { get; protected set; } =
"Server=localhost;Database=stl_fusion_tests;Port=5432;User Id=postgres;Password=postgres;Enlist=false;Minimum Pool Size=5;Maximum Pool Size=1000;Connection Idle Lifetime=30";
"Server=localhost;Database=stl_fusion_tests;Port=5432;User Id=postgres;Password=postgres;Enlist=false";
public string MariaDbConnectionString { get; protected set; } =
"Server=localhost;Database=stl_fusion_tests;Port=3306;User=root;Password=mariadb";
public string SqlServerConnectionString { get; protected set; } =
Expand Down
2 changes: 1 addition & 1 deletion tests/Stl.Fusion.Tests/PerformanceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public async Task ComputedPerformanceTest()
plainUsers.UseEntityResolver = UseEntityResolver;

var opCountPerCore = 8_000_000;
var readersPerCore = 16;
var readersPerCore = 20;
var readerCount = HardwareInfo.GetProcessorCountFactor(readersPerCore);
var fusionIterationCount = opCountPerCore / readersPerCore;
var nonFusionIterationCount = fusionIterationCount / (UseEntityResolver ? 2000 : 6000);
Expand Down

0 comments on commit 25226d0

Please sign in to comment.