check math.js evalution performance (v4)

Revision 4 of this benchmark created on


Preparation HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjs/11.9.1/math.js" ></script>

Setup

let expression = math.compile('a / b')
let a = 234;
let b = 7926;

Test runner

Ready to run.

Testing in
TestOps/sec
with math.js evaluate
let c = math.evaluate('a / b', {
	a,
	b
})
ready
bulit calculation
let c = a / b;
ready
with math.js compile
let c = expression.evaluate({
	a,
	b
})
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.