Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using Hexecs.Actors.Pipelines;
using Hexecs.Benchmarks.Map.Common.Positions;
using Hexecs.Benchmarks.Map.Terrains.Assets;
using Hexecs.Benchmarks.Map.Terrains.ValueTypes;
using Hexecs.Benchmarks.Map.Utils;
using Hexecs.Pipelines;

namespace Hexecs.Benchmarks.Map.Terrains.Commands.Generate;
Expand Down
57 changes: 29 additions & 28 deletions src/Hexecs.Benchmarks/Actors/ActorCheckComponentExistsBenchmark.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.Runtime.CompilerServices;
using Friflo.Engine.ECS;
using Friflo.Engine.ECS;
using Hexecs.Benchmarks.Mocks.ActorComponents;
using Hexecs.Worlds;
using World = Hexecs.Worlds.World;
Expand All @@ -8,47 +7,49 @@ namespace Hexecs.Benchmarks.Actors;

// BenchmarkDotNet v0.15.8, Windows 11 (10.0.22621.4317/22H2/2022Update/SunValley2)
// Intel Xeon CPU E5-2697 v3 2.60GHz, 2 CPU, 56 logical and 28 physical cores
// .NET SDK 10.0.100
// [Host] : .NET 10.0.0 (10.0.0, 10.0.25.52411), X64 RyuJIT x86-64-v3
// .NET 10.0 : .NET 10.0.0 (10.0.0, 10.0.25.52411), X64 RyuJIT x86-64-v3
// .NET SDK 10.0.102
// [Host] : .NET 10.0.2 (10.0.2, 10.0.225.61305), X64 RyuJIT x86-64-v3
// .NET 10.0 : .NET 10.0.2 (10.0.2, 10.0.225.61305), X64 RyuJIT x86-64-v3
//
// Job=.NET 10.0 Runtime=.NET 10.0
//
// | Method | Count | Mean | Ratio | Allocated | Alloc Ratio |
// |----------------- |------- |----------:|------:|----------:|------------:|
// | Hexecs_Is | 10000 | 20.42 us | 0.96 | - | NA |
// | Hexecs_Has | 10000 | 21.19 us | 1.00 | - | NA |
// | Hexecs_Reference | 10000 | 24.30 us | 1.15 | - | NA |
// | FriFlo_Has | 10000 | 40.28 us | 1.90 | - | NA |
// | DefaultEcs_Has | 10000 | 73.24 us | 3.46 | - | NA |
// | Hexecs_Is | 10000 | 14.55 us | 0.88 | - | NA |
// | Hexecs_Reference | 10000 | 15.92 us | 0.96 | - | NA |
// | Hexecs_Has | 10000 | 16.58 us | 1.00 | - | NA |
// | FriFlo_Has | 10000 | 40.36 us | 2.43 | - | NA |
// | DefaultEcs_Has | 10000 | 72.01 us | 4.34 | - | NA |
// | | | | | | |
// | Hexecs_Is | 100000 | 204.98 us | 0.94 | - | NA |
// | Hexecs_Has | 100000 | 219.12 us | 1.00 | - | NA |
// | Hexecs_Reference | 100000 | 251.83 us | 1.15 | - | NA |
// | FriFlo_Has | 100000 | 409.48 us | 1.87 | - | NA |
// | DefaultEcs_Has | 100000 | 712.00 us | 3.25 | - | NA |
// | Hexecs_Is | 100000 | 149.57 us | 0.93 | - | NA |
// | Hexecs_Has | 100000 | 161.46 us | 1.00 | - | NA |
// | Hexecs_Reference | 100000 | 163.02 us | 1.01 | - | NA |
// | FriFlo_Has | 100000 | 409.32 us | 2.54 | - | NA |
// | DefaultEcs_Has | 100000 | 730.64 us | 4.53 | - | NA |
//
// ------------------------------------------------------------------------------------
//
// BenchmarkDotNet v0.15.8, macOS Tahoe 26.2 (25C56) [Darwin 25.2.0]
// Apple M3 Max, 1 CPU, 16 logical and 16 physical cores
// .NET SDK 10.0.101
// .NET SDK 10.0.102
// [Host] : .NET 10.0.1 (10.0.1, 10.0.125.57005), Arm64 RyuJIT armv8.0-a
// .NET 10.0 : .NET 10.0.1 (10.0.1, 10.0.125.57005), Arm64 RyuJIT armv8.0-a
// .NET 10.0 : .NET 10.0.2 (10.0.2, 10.0.225.61305), Arm64 RyuJIT armv8.0-a
//
// Job=.NET 10.0 Runtime=.NET 10.0
//
// | Method | Mean | Ratio | Allocated | Alloc Ratio |
// |----------------- |----------:|------:|----------:|------------:|
// | Hexecs_Is | 12.76 us | 0.93 | - | NA |
// | Hexecs_Has | 13.79 us | 1.00 | - | NA |
// | Hexecs_Reference | 15.44 us | 1.12 | - | NA |
// | DefaultEcs_Has | 25.32 us | 1.84 | - | NA |
// | | | | | |
// | Hexecs_Is | 127.64 us | 0.92 | - | NA |
// | Hexecs_Has | 139.17 us | 1.00 | - | NA |
// | Hexecs_Reference | 155.12 us | 1.11 | - | NA |
// | DefaultEcs_Has | 255.36 us | 1.83 | - | NA |
// | Method | Count | Mean | Ratio | Allocated | Alloc Ratio |
// |----------------- |------- |-----------:|------:|----------:|------------:|
// | Hexecs_Is | 10000 | 9.916 us | 0.90 | - | NA |
// | Hexecs_Has | 10000 | 10.960 us | 1.00 | - | NA |
// | Hexecs_Reference | 10000 | 11.301 us | 1.03 | - | NA |
// | FriFlo_Has | 10000 | 16.540 us | 1.51 | - | NA |
// | DefaultEcs_Has | 10000 | 25.877 us | 2.36 | - | NA |
// | | | | | | |
// | Hexecs_Is | 100000 | 98.966 us | 0.90 | - | NA |
// | Hexecs_Has | 100000 | 110.039 us | 1.00 | - | NA |
// | Hexecs_Reference | 100000 | 112.981 us | 1.03 | - | NA |
// | FriFlo_Has | 100000 | 159.346 us | 1.45 | - | NA |
// | DefaultEcs_Has | 100000 | 256.135 us | 2.33 | - | NA |

[SimpleJob(RuntimeMoniker.Net10_0)]
[Orderer(SummaryOrderPolicy.FastestToSlowest)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,46 +8,49 @@ namespace Hexecs.Benchmarks.Actors;

// BenchmarkDotNet v0.15.8, Windows 11 (10.0.22621.4317/22H2/2022Update/SunValley2)
// Intel Xeon CPU E5-2697 v3 2.60GHz, 2 CPU, 56 logical and 28 physical cores
// .NET SDK 10.0.100
// [Host] : .NET 10.0.0 (10.0.0, 10.0.25.52411), X64 RyuJIT x86-64-v3
// .NET 10.0 : .NET 10.0.0 (10.0.0, 10.0.25.52411), X64 RyuJIT x86-64-v3
// .NET SDK 10.0.102
// [Host] : .NET 10.0.2 (10.0.2, 10.0.225.61305), X64 RyuJIT x86-64-v3
// .NET 10.0 : .NET 10.0.2 (10.0.2, 10.0.225.61305), X64 RyuJIT x86-64-v3
//
// Job=.NET 10.0 Runtime=.NET 10.0
//
// | Method | Count | Mean | Ratio | Gen0 | Allocated | Alloc Ratio |
// |---------------------------- |------- |-------------:|------:|-------:|-----------:|------------:|
// | FriFlo_CreateAddDestroy | 1000 | 153.5 us | 0.29 | - | - | NA |
// | DefaultEcs_CreateAddDestroy | 1000 | 401.1 us | 0.77 | 1.4648 | 32000 B | NA |
// | Hexecs_CreateAddDestroy | 1000 | 523.6 us | 1.00 | - | - | NA |
// | | | | | | | |
// | FriFlo_CreateAddDestroy | 100000 | 16,519.0 us | 0.25 | - | 40 B | 1.00 |
// | Hexecs_CreateAddDestroy | 100000 | 65,924.0 us | 1.00 | - | 40 B | 1.00 |
// | DefaultEcs_CreateAddDestroy | 100000 | 105,603.9 us | 1.60 | - | 3200040 B | 80,001.00 |
// | | | | | | | |
// | FriFlo_CreateAddDestroy | 500000 | 85,496.9 us | 0.18 | - | 40 B | 1.00 |
// | Hexecs_CreateAddDestroy | 500000 | 474,476.8 us | 1.00 | - | 40 B | 1.00 |
// | DefaultEcs_CreateAddDestroy | 500000 | 539,368.3 us | 1.14 | - | 16000040 B | 400,001.00 |
// | Method | Count | Mean | Ratio | Gen0 | Allocated | Alloc Ratio |
// |---------------------------- |------- |-------------:|------:|---------:|-----------:|------------:|
// | FriFlo_CreateAddDestroy | 1000 | 157.5 us | 0.32 | - | - | NA |
// | DefaultEcs_CreateAddDestroy | 1000 | 400.8 us | 0.83 | 1.4648 | 32000 B | NA |
// | Hexecs_CreateAddDestroy | 1000 | 485.5 us | 1.00 | - | - | NA |
// | | | | | | | |
// | FriFlo_CreateAddDestroy | 100000 | 16,503.2 us | 0.26 | - | 40 B | 1.00 |
// | Hexecs_CreateAddDestroy | 100000 | 62,708.1 us | 1.00 | - | 40 B | 1.00 |
// | DefaultEcs_CreateAddDestroy | 100000 | 89,760.2 us | 1.43 | 166.6667 | 3200040 B | 80,001.00 |
// | | | | | | | |
// | FriFlo_CreateAddDestroy | 500000 | 84,276.5 us | 0.15 | - | 40 B | 1.00 |
// | DefaultEcs_CreateAddDestroy | 500000 | 457,366.0 us | 0.83 | - | 16000040 B | 400,001.00 |
// | Hexecs_CreateAddDestroy | 500000 | 551,567.4 us | 1.00 | - | 40 B | 1.00 |
//
// ------------------------------------------------------------------------------------
// ---------------------------------------------------------------------------------------------------------
//
// BenchmarkDotNet v0.15.8, macOS Tahoe 26.2 (25C56) [Darwin 25.2.0]
// Apple M3 Max, 1 CPU, 16 logical and 16 physical cores
// .NET SDK 10.0.101
// .NET SDK 10.0.102
// [Host] : .NET 10.0.1 (10.0.1, 10.0.125.57005), Arm64 RyuJIT armv8.0-a
// .NET 10.0 : .NET 10.0.1 (10.0.1, 10.0.125.57005), Arm64 RyuJIT armv8.0-a
// .NET 10.0 : .NET 10.0.2 (10.0.2, 10.0.225.61305), Arm64 RyuJIT armv8.0-a
//
// Job=.NET 10.0 Runtime=.NET 10.0
//
// | Method | Count | Mean | Ratio | Gen0 | Gen1 | Allocated | Alloc Ratio |
// |---------------------------- |------- |-------------:|------:|----------:|---------:|-----------:|------------:|
// | Hexecs_CreateAddDestroy | 1000 | 176.0 us | 1.00 | - | - | - | NA |
// | DefaultEcs_CreateAddDestroy | 1000 | 207.3 us | 1.18 | 3.6621 | - | 32000 B | NA |
// | | | | | | | | |
// | Hexecs_CreateAddDestroy | 100000 | 19,069.0 us | 1.00 | - | - | 40 B | 1.00 |
// | DefaultEcs_CreateAddDestroy | 100000 | 22,847.4 us | 1.20 | 375.0000 | 156.2500 | 3200040 B | 80,001.00 |
// | | | | | | | | |
// | Hexecs_CreateAddDestroy | 500000 | 113,318.9 us | 1.00 | - | - | 40 B | 1.00 |
// | DefaultEcs_CreateAddDestroy | 500000 | 121,507.3 us | 1.07 | 1800.0000 | 800.0000 | 16000040 B | 400,001.00 |
// | Method | Count | Mean | Ratio | Gen0 | Gen1 | Allocated | Alloc Ratio |
// |---------------------------- |------- |--------------:|------:|----------:|---------:|-----------:|------------:|
// | FriFlo_CreateAddDestroy | 1000 | 70.04 us | 0.45 | - | - | - | NA |
// | Hexecs_CreateAddDestroy | 1000 | 156.05 us | 1.00 | - | - | - | NA |
// | DefaultEcs_CreateAddDestroy | 1000 | 206.26 us | 1.32 | 3.6621 | - | 32000 B | NA |
// | | | | | | | | |
// | FriFlo_CreateAddDestroy | 100000 | 7,036.37 us | 0.41 | - | - | 40 B | 1.00 |
// | Hexecs_CreateAddDestroy | 100000 | 16,996.78 us | 1.00 | - | - | 40 B | 1.00 |
// | DefaultEcs_CreateAddDestroy | 100000 | 22,336.53 us | 1.31 | 375.0000 | 156.2500 | 3200040 B | 80,001.00 |
// | | | | | | | | |
// | FriFlo_CreateAddDestroy | 500000 | 33,983.08 us | 0.36 | - | - | 40 B | 1.00 |
// | Hexecs_CreateAddDestroy | 500000 | 93,505.58 us | 1.00 | - | - | 40 B | 1.00 |
// | DefaultEcs_CreateAddDestroy | 500000 | 122,641.64 us | 1.31 | 1800.0000 | 800.0000 | 16000040 B | 400,001.00 |

[SimpleJob(RuntimeMoniker.Net10_0)]
[Orderer(SummaryOrderPolicy.FastestToSlowest)]
Expand Down
Loading