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

Add updated benchmarks #138

Merged
merged 2 commits into from
Jan 3, 2024
Merged

Add updated benchmarks #138

merged 2 commits into from
Jan 3, 2024

Conversation

stephencelis
Copy link
Member

Let's add updated benchmarks to get a better understanding of the performance of case key paths vs. reflection-based case paths.

While case key paths bring a number of improvements to case paths, including better ergonomics and the ability to utilize dynamic member lookup along enum cases, they are currently a bit slower than reflection-based case paths.

The performance of reflection-based case paths is the result of a long journey of improvements, so this shouldn't be super surprising, and case key paths are still plenty fast compared to earlier case paths.

These benchmarks will help us measure improvements to case key paths over time.

Let's add updated benchmarks to get a better understanding of the
performance of case key paths vs. reflection-based case paths.

While case key paths bring a number of improvements to case paths,
including better ergonomics and the ability to utilize dynamic member
lookup along enum cases, they are currently a bit slower than
reflection-based case paths.

The performance of reflection-based case paths is the result of a long
journey of improvements, so this shouldn't be super surprising, and case
key paths are still plenty fast compared to earlier case paths.

These benchmarks will help us measure improvements to case key paths
over time.
* Performance: Access case path directly in dynamic member lookup

* update bench
@stephencelis stephencelis merged commit d6db277 into main Jan 3, 2024
4 of 5 checks passed
@stephencelis stephencelis deleted the update-benchmarks branch January 3, 2024 03:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants