MCPcopy 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
3import assert from 'node:assert'
4import { Bench } from 'tinybench'

Callers

nothing calls this directly

Calls 7

createFunction · 0.90
formatTaskResultFunction · 0.90
cubeJsPlainFunction · 0.85
cubeJsWithMathjsFnFunction · 0.85
evaluateMethod · 0.65
addMethod · 0.65
logMethod · 0.65

Tested by

no test coverage detected