Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/gpujs/gpu.js
/ benchmark.js
File
benchmark.js
test/benchmark.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
const
{ GPU } = require(
'../src/index.js'
);
2
const
Benchmark = require(
'benchmark'
);
3
4
const
suite =
new
Benchmark.Suite();
Callers
nothing calls this directly
Calls
8
randomMatrix
Function · 0.85
setPipeline
Method · 0.80
setConstants
Method · 0.80
createKernel
Method · 0.80
setOutput
Method · 0.45
setPrecision
Method · 0.45
run
Method · 0.45
destroy
Method · 0.45
Tested by
no test coverage detected