We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d8a782 commit 9243af9Copy full SHA for 9243af9
1 file changed
benchmark/v8/serialize.js
@@ -0,0 +1,16 @@
1
+'use strict';
2
+
3
+const common = require('../common.js');
4
+const v8 = require('v8');
5
6
+const bench = common.createBenchmark(main, {
7
+ n: [1e6]
8
+});
9
10
+function main({ n }) {
11
+ const typedArray = new BigUint64Array();
12
+ bench.start();
13
+ for (let i = 0; i < n; i++)
14
+ v8.serialize({ a: 1, b: typedArray });
15
+ bench.end(n);
16
+}
0 commit comments