Skip to content
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

added performance benchmarks for FSM #6144

Merged

Conversation

Aaronontheweb
Copy link
Member

Fixes #2560

Changes

added performance benchmarks for FSM

Checklist

For significant changes, please ensure that the following have been completed (delete if not relevant):

This PR's Benchmarks

BenchmarkDotNet=v0.13.1, OS=Windows 10.0.19044.2006 (21H2)
AMD Ryzen 7 1700, 1 CPU, 16 logical and 8 physical cores
.NET SDK=6.0.201
  [Host]     : .NET 6.0.3 (6.0.322.12309), X64 RyuJIT
  DefaultJob : .NET 6.0.3 (6.0.322.12309), X64 RyuJIT

Method MsgCount Mean Error StdDev Ratio RatioSD Gen 0 Gen 1 Gen 2 Allocated
BenchmarkFsm 1000000 758.8 ms 10.92 ms 10.21 ms 1.67 0.03 69000.0000 4000.0000 1000.0000 287 MB
BenchmarkUntyped 1000000 456.2 ms 8.86 ms 10.21 ms 1.00 0.00 11000.0000 3000.0000 1000.0000 56 MB

LOTS of memory allocations for FSMs, and a 67% perf penalty.

@Aaronontheweb Aaronontheweb enabled auto-merge (squash) October 5, 2022 20:05
@Aaronontheweb Aaronontheweb merged commit f4402cb into akkadotnet:v1.4 Oct 5, 2022
@Aaronontheweb Aaronontheweb deleted the fix-2560-benchmark-FSM branch October 6, 2022 00:50
Aaronontheweb added a commit to Aaronontheweb/akka.net that referenced this pull request Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant