Skip to content

[feature] benchmark #58

Open
Open

Description

@mert-kurttutan

I am not sure if this is already mentioned but it would be nice if there is a set of benchmarks that compare this project with other projects for optimization problems.

Activity

  1. added
    enhancement
    on Aug 19, 2026
  2. GermanHeim commented on Aug 20, 2026

    @GermanHeim
    Member

    Hi @mert-kurttutan, thanks for your interest in oximo!

    Benchmarks are definitely a repeated request, and I understand why.
    There are already some benchmarks in the repo, but they mostly cover some threshold parameters (See https://github.com/oximo-rs/oximo/tree/main/crates/oximo/benches). I definitely want to create a set of benchmarks to compare oximo with other projects, mostly Pyomo and JuMP.

    I expect both will outperform oximo for now, since they've had years of optimization behind them, while oximo is still quite new. I haven't focused much on performance yet, as there are still many basic features I'd like to add first. Also, creating fair benchmarks is somewhat hard, considering that each programming language is different and it is easy to screw up.

    Would you be interested in working on this? Happy to discuss implementation details if so.

  3. GermanHeim commented on Aug 20, 2026

    @GermanHeim
    Member
  4. CMarcher commented on Oct 6, 2026

    @CMarcher

    I'd be more interested in a comparison of the model building (especially expression walking) performance rather than the actual solving (which will come down to initialisation, scaling and solver robustness). One frequent issue we have with Pyomo as a Python-based framework is that building large models and subsequently analysing them is rather slow. Profiling shows that plenty of CPU time is spent in the expression tree repeatedly visiting nodes. Even with caching, the model build time in Pyomo still isn't ideal.

  5. GermanHeim commented on Oct 7, 2026

    @GermanHeim
    Member

    @CMarcher Is there an open-source implementation of those models I could look at? A while back, I benchmarked model building for some of my small-to-medium NLP models, and oximo was 5x to 11x faster. I've still got a bunch of performance optimizations I want to try out.

  6. CMarcher commented on Nov 20, 2026

    @CMarcher

    Sorry for the late reply. I don't have any OSS examples for you, but I would suggest asking your bot to compare a Pyomo vs Oximo implementation of a reference 1D model that has thousands of variables and potentially hard initialisation. Look through https://idaes-pse.readthedocs.io/en/2.6.0/reference_guides/model_libraries/generic/unit_models/index.html. Though the benchmark would also need to properly set up a property package and ensure the thermodynamics are equivalent on the oximo side, which could take a number of agent-hours.

  7. GermanHeim commented on Nov 20, 2026

    @GermanHeim
    Member

    Thanks!

    I think using standard models from MIPLIB and QPLIB makes more sense at this stage.
    Most of oximo is coded by hand, with AI agents only used for analysis, updating tests, or adjusting call sites after breaking changes. Adding a full thermodynamics package inside oximo feels out of scope for now.

    We could measure construction + preparation + lowering to a common backend (Probably Gurobi, since that is what the JuMP paper uses) without actually solving the models.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions