Skip to content

Benchmarks

Wall time of the two simulators of the project over the models of every check: libopencor simulates the CellML model and sbmlsim-core the SBML model of the same system, one of the two converted from the other, over the same output grid and with the same solver settings. The pass rates of the conversions are on the Models page.

Only the models whose converted model reproduces the simulation of the source model are compared: the two simulators integrate the same dynamics there, which a model with a conversion gap does not. Both simulators integrate with CVODE with tight tolerances (relative/absolute 1e-9/1e-12) and up to 100000 internal steps between two time points, so the comparison measures the conversion and not the integrator; only when CVODE gives up with these tolerances the simulation is repeated with 1e-8/1e-10 and 1e-7/1e-9. Both simulations scale the absolute tolerance with the smallest initial value of a state of their own model when it is below one: the states of the SBML side are amounts, which are small for a model with a small compartment, and the states of the CellML side the variables of its components.

Every wall time is measured inside the simulator wrapper in the worker process of the harness, so it holds no overhead of the harness. Both simulators run a model once before the run of the result, so that the generation of the code of a model, which libopencor does when it runs a model the first time, is part of its setup.

The numbers are the committed runs of the checks on one machine: they compare the two simulators with each other over the same models, they are no absolute performance figures. In every table the ratio is the median of the time of libopencor divided by the time of sbmlsim-core per model, so a ratio below one means libopencor is faster for the median model, and the sum is the wall time of all models of the check.

Summary

Median setup, integration and total time per check Median setup, integration and total time per check

Setup

Setup time of libopencor against sbmlsim-core Setup time of libopencor against sbmlsim-core

The setup is everything a simulator does with a model before it integrates: reading and converting the file, generating and compiling the code of the model and building the instance. It takes longer than the integration for the median model of every check.

check models sbmlsim-core libopencor ratio libopencor faster sbmlsim-core sum libopencor sum
SBML test suite 1158 0.94 ms 4.5 ms 5.05 88 of 1158 1.5 s 5.4 s
BioModels 940 22 ms 14 ms 0.64 829 of 940 1.4 min 43.4 s
Physiome Model Repository 57 5.9 ms 21 ms 3.53 2 of 57 1.6 s 3.1 s

Integration

Integration time of libopencor against sbmlsim-core Integration time of libopencor against sbmlsim-core

The integration is the run of the solver over the output grid, the same grid and the same tolerances for both simulators.

check models sbmlsim-core libopencor ratio libopencor faster sbmlsim-core sum libopencor sum
SBML test suite 1158 0.07 ms 0.06 ms 0.93 786 of 1158 72 ms 64 ms
BioModels 940 0.39 ms 0.36 ms 0.88 645 of 940 1.4 s 2.2 s
Physiome Model Repository 57 0.93 ms 0.60 ms 0.75 51 of 57 1.1 s 974 ms

Total

Total time of libopencor against sbmlsim-core Total time of libopencor against sbmlsim-core

The setup and the integration of a model together, what a simulator costs for a model which is simulated once; a model simulated again in the same process needs no setup, since both simulators cache what they compiled.

check models sbmlsim-core libopencor ratio libopencor faster sbmlsim-core sum libopencor sum
SBML test suite 1158 1.0 ms 4.6 ms 4.74 88 of 1158 1.5 s 5.4 s
BioModels 940 23 ms 15 ms 0.65 828 of 940 1.4 min 45.6 s
Physiome Model Repository 57 6.6 ms 22 ms 3.16 2 of 57 2.6 s 4.1 s

Slowest models

The 5 models of every check with the longest integration, by the longer of the two times.

SBML test suite

model sbmlsim-core libopencor ratio
01395 0.62 ms 0.65 ms 1.06
01563 0.09 ms 0.54 ms 5.99
00197 0.20 ms 0.15 ms 0.78
01168 0.20 ms 0.16 ms 0.80
00160 0.20 ms 0.14 ms 0.70

BioModels

model name sbmlsim-core libopencor ratio
BIOMD0000001099 Richards2016 - Genome-scale metabolic reconstruction of Methanococcus maripaludis (iMR539) 0.39 ms 167 ms 427.11
BIOMD0000000206 Wolf2000_Glycolytic_Oscillations 151 ms 118 ms 0.78
BIOMD0000000497 Stanford2013 - Kinetic model of yeast metabolic network (regulation) 15 ms 117 ms 7.96
BIOMD0000000470 Smallbone2013 - E.coli metabolic model with modular rate law 2.8 ms 95 ms 34.06
BIOMD0000000496 Stanford2013 - Kinetic model of yeast metabolic network (standard) 8.5 ms 92 ms 10.83

Physiome Model Repository

model name sbmlsim-core libopencor ratio
139 An updated computational model of rabbit sinoatrial action potential to investigate the mechanisms of heart rate modulation. 488 ms 506 ms 1.04
594 Paci, Hyttinen, Aalto-Setala, Severi 2013 HiPSC models 357 ms 273 ms 0.76
2a6 Noble, 1962 80 ms 76 ms 0.96
53 Schoeberl, Eichler-Jonsson, Gilles, Muller, 2002 12 ms 21 ms 1.74
41 Bondarenko, Szigeti, Bett, Kim, Rasmusson, 2004 12 ms 13 ms 1.07