APIs elapsed time comparison

This section reports the comparison of the ASALI APIs in term of computational time. These results are obtained with a AMD Athlon(tm) II P320 Dual-Core Processor with Ubuntu 22.04.3 LTS.
If you download ASALI, you can run the same test on your own computer using the following commands:

cd API/elapsedTimeComparison/  
./run.sh -n 2000 -f test.md --compile  

Assumptions and operating conditions

The gas mixture operating conditions are reported in the following table:

Property Value Unit dimension
Temperature 393.15 K
Pressure 4 bar
H2 0.1 Molar fraction
O2 0.1 Molar fraction
C3H8 0.1 Molar fraction
C2H6 0.1 Molar fraction
CH4 0.1 Molar fraction
CO2 0.1 Molar fraction
HE 0.1 Molar fraction
N2 0.1 Molar fraction
NH3 0.2 Molar fraction

The performance comparison has the following assumptions:

  • Number of runs: 2000
  • Elapsed time to initialize output variables is not considered

Results

The table reports the compatutational time required to estimate all thermodynamic and transport properties and the computational time required to initialize ASALI.

Language Initialization (s) Calculation (s)
C++ 7.685e-04 1.003e-05
C 7.086e-05 1.196e-04
Fortran n.a. 2.751e-06
Java 1.058e-04 1.575e-05
Rust 1.098e-04 9.363e-04
Octave 6.621e-03 8.256e-01