Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/josdejong/mathjs
/ expression_parser_functions.js
File
expression_parser_functions.js
test/benchmark/expression_parser_functions.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
// test performance of plain JS functions vs custom functions defined via the expression parser
2
3
import
assert from
'node:assert'
4
import
{ Bench } from
'tinybench'
Callers
nothing calls this directly
Calls
7
create
Function · 0.90
formatTaskResult
Function · 0.90
cubeJsPlain
Function · 0.85
cubeJsWithMathjsFn
Function · 0.85
evaluate
Method · 0.65
add
Method · 0.65
log
Method · 0.65
Tested by
no test coverage detected