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 55c2da7 commit c5bbc44Copy full SHA for c5bbc44
2 files changed
bench/convert.bench.ts
@@ -0,0 +1,18 @@
1
+import { bench } from 'vitest';
2
+
3
+import { convert, type ConvertRecord } from '../src/convert.js';
4
5
+const input = {
6
+ firstName: 'Test',
7
+ lastName: 'Testerson',
8
+ age: 42,
9
+};
10
11
+const converter: ConvertRecord<typeof input, { fullName: string; age: number }> = {
12
+ fullName: (data) => data.firstName + ' ' + data.lastName,
13
+ age: (data) => data.age,
14
15
16
+bench('convert()', () => {
17
+ convert(input, converter);
18
+});
bench/getOwnProperties.bench.ts
@@ -0,0 +1,7 @@
+import { getOwnProperties } from '../src/getOwnProperties.js';
+bench('getOwnProperties()', () => {
+ getOwnProperties(globalThis);
0 commit comments