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

Benchmark tables for lookup #367

Merged
merged 10 commits into from
Feb 9, 2024
Merged

Benchmark tables for lookup #367

merged 10 commits into from
Feb 9, 2024

Conversation

mlange-42
Copy link
Owner

@mlange-42 mlange-42 commented Feb 8, 2024

Query

Operation Time Remark
Query.Next 1.0 ns
Query.Next + 1x Get 1.6 ns
Query.Next + 2x Get 2.3 ns
Query.Next + 5x Get 4.4 ns
Query.EntityAt, 1 arch 11.7 ns
Query.EntityAt, 1 arch 2.8 ns registered filter
Query.EntityAt, 5 arch 14.9 ns
Query.EntityAt, 5 arch 3.1 ns registered filter
World.Query 46.3 ns
World.Query 34.1 ns registered filter

Entities

Operation Time Remark
World.NewEntity 16.1 ns memory already allocated
World.NewEntity w/ 1 Comp 34.2 ns memory already allocated
World.NewEntity w/ 5 Comps 59.4 ns memory already allocated
World.RemoveEntity 15.6 ns
World.RemoveEntity w/ 1 Comp 26.1 ns
World.RemoveEntity w/ 5 Comps 54.8 ns

Entities, batched

Operation Time Remark
Builder.NewBatch 9.9 ns 1000, memory already allocated
Builder.NewBatch w/ 1 Comp 10.0 ns 1000, memory already allocated
Builder.NewBatch w/ 5 Comps 10.0 ns 1000, memory already allocated
Batch.RemoveEntities 7.5 ns 1000
Batch.RemoveEntities w/ 1 Comp 7.2 ns 1000
Batch.RemoveEntities w/ 5 Comps 8.5 ns 1000

Components

Operation Time Remark
World.Add 1 Comp 49.4 ns memory already allocated
World.Add 5 Comps 79.0 ns memory already allocated
World.Remove 1 Comp 59.8 ns
World.Remove 5 Comps 121.8 ns
World.Exchange 1 Comp 56.4 ns memory already allocated

Components, batched

Operation Time Remark
Batch.Add 1 Comp 8.8 ns 1000, memory already allocated
Batch.Add 5 Comps 8.9 ns 1000, memory already allocated
Batch.Remove 1 Comp 10.3 ns 1000
Batch.Remove 5 Comps 16.1 ns 1000
Batch.Exchange 1 Comp 10.3 ns 1000, memory already allocated

@mlange-42 mlange-42 self-assigned this Feb 8, 2024
@coveralls
Copy link
Collaborator

coveralls commented Feb 8, 2024

Pull Request Test Coverage Report for Build 7838118342

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 7837909869: 0.0%
Covered Lines: 6226
Relevant Lines: 6226

💛 - Coveralls

@mlange-42 mlange-42 added documentation Improvements or additions to documentation performance Performance-related stuff tests Tests, benchmarks and profiling labels Feb 8, 2024
@mlange-42 mlange-42 marked this pull request as ready for review February 9, 2024 00:38
@mlange-42 mlange-42 changed the title Benchmarks table for lookup Benchmark tables for lookup Feb 9, 2024
@mlange-42 mlange-42 merged commit a37ecef into main Feb 9, 2024
19 checks passed
@mlange-42 mlange-42 deleted the benchmarks-table branch February 9, 2024 01:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation performance Performance-related stuff tests Tests, benchmarks and profiling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants