We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc62f96 commit a8c580bCopy full SHA for a8c580b
1 file changed
benches/WorkerManager.bench.ts
@@ -65,7 +65,7 @@ export default async () => {
65
// Then with a basic transfer to, and transfer back
66
const inputAB = bytes.buffer.slice(
67
bytes.byteOffset,
68
- bytes.byteOffset + bytes.byteLength
+ bytes.byteOffset + bytes.byteLength,
69
);
70
await workerManager.call(async (w) => {
71
const outputAB = await w.transferBuffer(Transfer(inputAB));
@@ -74,10 +74,7 @@ export default async () => {
74
}),
75
b.add('Slice-Copy of 1 MiB of data', () => {
76
// Compare this to Transfer Overhead
77
- bytes.buffer.slice(
78
- bytes.byteOffset,
79
80
- );
+ bytes.buffer.slice(bytes.byteOffset, bytes.byteOffset + bytes.byteLength);
81
82
b.cycle(),
83
b.complete(),
0 commit comments