Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cortex-js/compute-engine
/ benchmarks.ts
File
benchmarks.ts
test/big-decimal/benchmarks.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ BigDecimal } from
'../../src/big-decimal'
;
2
import
{ Decimal } from
'decimal.js'
;
3
4
function
bench(name: string, fn: () => void, iterations = 1000): string {
Callers
nothing calls this directly
Calls
12
sin
Method · 0.80
cos
Method · 0.80
atan
Method · 0.80
bench
Function · 0.70
log
Method · 0.65
set
Method · 0.65
add
Method · 0.65
mul
Method · 0.65
div
Method · 0.65
sqrt
Method · 0.65
exp
Method · 0.65
ln
Method · 0.65
Tested by
no test coverage detected