spine-tools / Spine-Database-API

Database interface to Spine generic data model
https://www.tools-for-energy-system-modelling.org/
GNU Lesser General Public License v3.0
6 stars 5 forks source link

Add more benchmarks #389

Closed soininen closed 2 months ago

soininen commented 2 months ago

This PR adds a benchmark that was salvaged from a failed attempt to use numba JIT compiler to speed up MappedItem.__getitem__(). Some profiling experiments identified MappedItem.__getitem__() as a hot spot when using DatabaseMapping, so it could have been nice if it was possible to improve its performance.

No associated issue.

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 78.25%. Comparing base (3c2b4b4) to head (9263b66).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## 0.8-dev #389 +/- ## ======================================== Coverage 78.25% 78.25% ======================================== Files 75 75 Lines 9511 9511 Branches 2014 2014 ======================================== Hits 7443 7443 Misses 1735 1735 Partials 333 333 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.