MCPcopy Index your code
hub / github.com/nodejs/node / compareUsingSlice

Function compareUsingSlice

benchmark/buffers/buffer-compare-offset.js:10–13  ·  view source on GitHub ↗
(b0, b1, len, iter)

Source from the content-addressed store, hash-verified

8});
9
10function compareUsingSlice(b0, b1, len, iter) {
11 for (let i = 0; i < iter; i++)
12 Buffer.compare(b0.slice(1, len), b1.slice(1, len));
13}
14
15function compareUsingOffset(b0, b1, len, iter) {
16 for (let i = 0; i < iter; i++)

Callers

nothing calls this directly

Calls 2

compareMethod · 0.65
sliceMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…