Even though I have already done mix clean --all --deps, I still get the next message from Benchee:
Not all of your protocols have been consolidated. In order to achieve the
best possible accuracy for benchmarks, please ensure protocol
consolidation is enabled in your benchmarking environment.
sounds like your protocols aren’t consolidated - I’m not 100% sure but it may be that you have protocols defined in .exs files and hence they aren’t consolidated? There is some more information here: Protocol — Elixir v1.16.1
Maybe you’ve also disabled it in test (as mentioned in the article there).
It’s hard to tell without a code base to access. Right now that warning message can’t be deactivated as it’s one of our “hard warnings” I’d say. Might be persuaded to add a deactivation for it, but generally speaking all protocols should be consolidated for benchmarking.
The link to the Elixir docs shows that usually projects disable protocol consolidation in the test env – have you checked if that’s true for your project?
It consolidated all protocols in all files that get compiled in the test environment. I did not check if it consolidated protocols implemented by modules in .exs files (it is not my use case).