Performance – Raspberry PI 2 – JAVA vs MONO

TO SUPPORT MY WORK, ORDER A COMMERCIAL LICENSE
THANK YOU!

Tutorial Math Collection API spec Download

Hardware & software used for performance testing

mXparser performance tests – Raspberry PI 2 – JAVA 1.8 vs MONO 3.2.8

  • Raspberry PI 2 + Raspbian Jessie
  • ARMv7 quad-core ARM Cortex-A7 CPU 900 MHz
  • 1GB
  • Java version – 1.8.0
  • MONO version – 3.2.8
Id Oper / Task Iter [#] JAVA MONO [x] Test descr
0 2+3 20 m 111 th/s 296 th/s 0.4 x Simple calculations – addition. Expression created once. Iteration: repeatedly recalculated same expression.
1 2*3 20 m 110 th/s 334 th/s 0.3 x Simple calculations – multiplication. Expression created once. Iteration: repeatedly recalculated same expression.
2 2/3 20 m 109 th/s 328 th/s 0.3 x Simple calculations – division. Expression created once. Iteration: repeatedly recalculated same expression.
3 2^3 20 m 110 th/s 287 th/s 0.4 x Simple calculations – power. Expression created once. Iteration: repeatedly recalculated same expression.
4 sin(3) 20 m 67 th/s 240 th/s 0.3 x Simple calculations – sinus. Expression created once. Iteration: repeatedly recalculated same expression.
5 2+3+4 20 m 53 th/s 202 th/s 0.3 x Simple calculations – 2 additions. Expression created once. Iteration: repeatedly recalculated same expression.
6 2+3+4+5 20 m 32 th/s 147 th/s 0.2 x Simple calculations – 3 additions. Expression created once. Iteration: repeatedlyrecalculated same expression.
7 2+(3+4)+5 20 m 24 th/s 112 th/s 0.2 x Simple calculations – 3 additions + 1 parenthesis. Expression created once. Iteration: repeatedly recalculated same expression.
8 (2+3)+(4+5) 20 m 18 th/s 93 th/s 0.2 x Simple calculations – 3 additions + 2 brackets. Expression created once. Iteration: repeatedly recalculated same expression.
9 2+(3+(4+5)) 20 m 18 th/s 93 th/s 0.2 x Simple calculations – 3 additions + 2 brackets. Expression created once. Iteration: repeatedly recalculated same expression.
10 sin(2+(3*4)^2)/10 20 m 12 th/s 67 th/s 0.2 x Combination of different operations. Expression created once. Iteration: repeatedly recalculated same expression.
11 2+x 20 m 109 th/s 322 th/s 0.3 x Simple calculations – addition with argument. Expression created once, containing argument ‘x’. Iteration: argument value is being modified (increased), then expression is recalculated
12 3f(x.y)-(2x+3*y) 2 m 6 th/s 36 th/s 0.2 x User defined function f(x,y)=3x+4y. Expression &Function created once, containing argument ‘x’. Iteration: argument value is being modified (increased), then expression is recalculated
13 Constant c = new Constant(“c”. 5) 1 m 118 th/s 76 th/s 1.6 x Creating constants: Iteration: Constant c = new Constant(“c”, 5)
14 Constant c = new Constant(“c=5”) 100 th 1.4 th/s 0.3 th/s 5.4 x Creating constants: Iteration: Constant c = new Constant(“c=5”)
15 Argument x = new Argument(“x”. 5) 1 m 111 th/s 78 th/s 1.4 x Creating arguments: Iteration: Argument x = new Argument(“x”, 5)
16 Argument x = new Argument(“x=5”) 100 th 1.4 th/s 0.3 th/s 5.4 x Creating arguments: Iteration: Argument x = new Argument(“x=5”)
17 Function f = new Function(“f”. “x+y”. “x”. “y”) 1 m 34 th/s 24 th/s 1.4 x Creating functions: Iteration: Function f = new Function(“f”, “x+y”, “x”, “y”)
18 Function f = new Function(“f(x.y)=x+y”) 100 th 0.7 th/s 1.5 th/s 0.5 x Creating functions: Iteration: Function f = new Function(“f(x,y)=x+y”)
19 Expression e = new Expression(“sin(2+(3*4)^2)/10”) 1 m 1.6 m/s 1.2 m/s 1.4 x Creating expressions: Iteration: Expression e = new Expression(“sin(2+(3*4)^2)/10”)
20 Expression e = new Expression(“sin(2+(3*4)^2)/10”) 100 th 0.2 th/s 0.2 th/s 0.8 x Creating expressions + checking syntax: Iteration: Expression e = new Expression(“sin(2+(3*4)^2)/10”)
Nuget – Package Manager (C#, F#, Visual Basic, …)

Install-Package MathParser.org-mXparser -Version 6.1.0

Nuget – .NET CLI

dotnet add package MathParser.org-mXparser --version 6.1.0

Nuget – Package Reference

<PackageReference Include="MathParser.org-mXparser" Version="6.1.0"/>

Maven – Dependency (Java, Kotlin, Scala, Groovy, …)

<dependency>
<groupid>
org.mariuszgromada.math</groupid>
<artifactid>
MathParser.org-mXparser</artifactid>
<version>
6.1.0</version>
</dependency>

Maven – Gradle

implementation 'org.mariuszgromada.math:MathParser.org-mXparser:6.1.0'

CMake – Dependency / FetchContent (C++, MSVC, LLVM/Clang, GNU/GCC, MinGW, MSYS2, WSL, Windows, Linux, Unix, MacOS)

include(FetchContent)
FetchContent_Declare(
MathParserOrgMxParser
GIT_REPOSITORY
https://github.com/mariuszgromada/MathParser.org-mXparser.git
GIT_TAG
v.6.1.0
SOURCE_SUBDIR CURRENT/cpp/lib
)
FetchContent_MakeAvailable(
MathParserOrgMxParser)
target_link_libraries(YourExecutable
MathParserOrgMxParser)

GitHub

git clone https://github.com/mariuszgromada/MathParser.org-mXparser

OTHER DOWNLOAD OPTIONS

Download latest release – v.6.1.0 Sagitara: .NET bin onlyDownload latest release – v.6.1.0 Sagitara: JAVA bin onlyDownload latest release – v.6.1.0 Sagitara: bin + doc

NEWS FROM MATHPARSER.ORG
SOURCE CODE

Source code .zipSource code .tar.gz
View on GitHubMathSpace.pl

My other creative spaces

DONATION
Did you find the software useful?
Please consider donation 🙂
DONATE
Thank you for using MathParser.org-mXparser
Great! That code snippet is already in your clipboard 🙂 Important – this page offers a detailed tutorial with a description of the syntax of the built-in math collection and an extensive API documentation. If you plan to use the software for a commercial purpose, please see the terms and conditions and the variants of the license.

Go back

Your message has been sent

Warning
Warning
Warning
Warning.

I wish you all the best 🙂
The download will start in a moment
Great! Thank you for using MathParser.org-mXparser 🙂 Important – this page offers a detailed tutorial with a description of the built-in math collection syntax and an extensive API documentation. If you plan to use the software for a commercial purpose, please see the terms and conditions and the variants of the license. If, for some reasons, the download did not start, please use these direct links: Binaries & Documentation or Binaries only

Go back

Your message has been sent

Warning
Warning
Warning
Warning.

I wish you all the best 🙂
Scalar - Scientific Calculator, Charts & Scripts

Scalar is a powerful math engine and math scripting language powered by the MathParser.org-mXparser

Click on the video and see Scalar in action 🙂

 

Scalar – lite version

Get it on Google Play

Scalar Pro – full professional version

Get it on Google Play

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close

Morty Proxy This is a proxified and sanitized view of the page, visit original site.