Skip to content

Commit 7085776

Browse files
committed
📘 chore: add decorate stress test
1 parent 0726fda commit 7085776

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/stress/decorate.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ Bun.gc(true)
2727

2828
const memoryAfter = process.memoryUsage().heapTotal / 1024 / 1024
2929
console.log(+(memoryAfter - memory).toFixed(2), 'MB memory used')
30-
console.log(+(t2 - t1).toFixed(2), 'ms')
31-
console.log(+(t2 - t1 / total * sub).toFixed(2), 'ms')
30+
console.log('total', +(t2 - t1).toFixed(2), 'ms')
31+
console.log(+((t2 - t1) / (total * sub)).toFixed(6), 'decoration/ms')

0 commit comments

Comments
 (0)