feos-org / feos

FeOs - A Framework for Equations of State and Classical Density Functional Theory
Other
125 stars 24 forks source link

Add benchmarks #77

Open g-bauer opened 2 years ago

g-bauer commented 2 years ago

Following #65, we should add benchmarks for possible future performance investigations. Feel free to add to the list of functions to benchmark.

Notes

prehner commented 1 year ago

I added DFT benchmarks in #103. Comparing different solvers in a benchmark is not useful imo, because it gives a very limited insight into the capabilities of the solver.

Do you have a specific thought on how to identify Python overhead? For DFT it appears to be of the order of 2-3 ms, but very difficult to assess property.

g-bauer commented 1 year ago

Do you have a specific thought on how to identify Python overhead? For DFT it appears to be of the order of 2-3 ms

I am note sure. There are options to run Python code using pyo3 (run, eval, from_code, etc.) but I am not sure if we can use these to make proper comparisons or get an idea of the overhead of a function/method. 2-3 ms seems to be a lot, though. Does that include calling a property that returns a numpy array?