You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When benchmarking a simple function, the constraints set as arguments of BenchConfig, handed over to Bench seem not to have an effect. On my machine, the benchmarking does not halt in reasonable time. (I have not observed the program to stop at all, but I have not waited longer than 30s)
Because I could not find the source code for the benchmarking module (please let me know if I overlooked something), I made my own small implementation. Let me know if this could be of any help for comparing the actual implementation with one that works =).
Bug description
When benchmarking a simple function, the constraints set as arguments of
BenchConfig
, handed over toBench
seem not to have an effect. On my machine, the benchmarking does not halt in reasonable time. (I have not observed the program to stop at all, but I have not waited longer than 30s)Steps to reproduce
Reproduce via the following code:
Also, when adding print statements to
bench_fn
, it can be seen thatbench_fn
is never called with an argument other than1
, which I find unexpected.System information
- Ubuntu 22.04.5 LTS in WSL2 on Windows 10 - mojo 2024.11.1705 (43b6e3df) - magic 0.4.0 - (based on pixi 0.33.0)
The text was updated successfully, but these errors were encountered: