aboutsummaryrefslogtreecommitdiff
path: root/bench/snippets/buffer.js
diff options
context:
space:
mode:
Diffstat (limited to 'bench/snippets/buffer.js')
-rw-r--r--bench/snippets/buffer.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/bench/snippets/buffer.js b/bench/snippets/buffer.js
index 9ababbf35..22dad8e34 100644
--- a/bench/snippets/buffer.js
+++ b/bench/snippets/buffer.js
@@ -10,18 +10,13 @@ var time = (name, fn) => {
console.timeEnd(name.padEnd('Buffer.write(string, "latin1")'.length));
};
-console.log(
- `Run ${new Intl.NumberFormat().format(INTERVAL)} times with a warmup:`,
- "\n"
-);
+console.log(`Run ${new Intl.NumberFormat().format(INTERVAL)} times with a warmup:`, "\n");
const stringToWrite = "hellooooohellooooo";
time('Buffer.write(string, "utf8")', () => buf.write(stringToWrite, "utf8"));
time('Buffer.write(string, "ascii")', () => buf.write(stringToWrite, "ascii"));
-time('Buffer.write(string, "latin1")', () =>
- buf.write(stringToWrite, "latin1")
-);
+time('Buffer.write(string, "latin1")', () => buf.write(stringToWrite, "latin1"));
time("Buffer.readBigInt64BE ", () => buf.readBigInt64BE(0));
// time("DataView.getBigInt64 (BE)", () => view.getBigInt64(0, false));
// console.log("");