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 benchmarks for get_for_dialect #1862

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

markus-96
Copy link
Contributor

these are high-level-benchmarks that will somehow call Field.get_for_dialect

Description

The above mentioned method has some potential to be optimized.

Motivation and Context

I want to optimize the method, like in this comment: #1859 (comment)

It is not used very often, but for example if you call any tortoise.expressions.Function, filter through/retrieve values of related models,...

How Has This Been Tested?

there seams to be a slight improvement with my optimizations

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added the changelog accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

these are high-level-benchmarks that will somehow call Field.get_for_benchmark
Copy link

codspeed-hq bot commented Jan 23, 2025

CodSpeed Performance Report

Merging #1862 will not alter performance

Comparing markus-96:benchmark-get_for_dialect (fd8cd56) with develop (3a5e836)

Summary

✅ 8 untouched benchmarks
🆕 3 new benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
🆕 test_filter_decimal N/A 1.1 ms N/A
🆕 test_function_count N/A 995.1 µs N/A
🆕 test_values_related_m2m N/A 1.4 ms N/A

@coveralls
Copy link

Pull Request Test Coverage Report for Build 12932533975

Details

  • 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 89.423%

Totals Coverage Status
Change from base Build 12927974311: 0.0%
Covered Lines: 6494
Relevant Lines: 7079

💛 - Coveralls

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.

2 participants