Repository navigation
Commit a1f8ea4
bench: construct subjects don't return proxies to await (#3926)
* bench: construct subjects don't return proxies to await
The CodSpeed analysis runner times `await fn()`; a subject returning a
merge/omit view had its `.then` probed through the proxy (and store)
traps inside the timed window. Assign results to a module-level sink.
Co-authored-by: Cursor <[email protected]>
* bench: one sink per utilities subject
A shared sink took objects, arrays, booleans and numbers across subjects;
the primitive-returning read subjects measured 5-9% slower under it.
Co-authored-by: Cursor <[email protected]>
* Revert "bench: one sink per utilities subject"
This reverts commit 2e46cf6.
---------
Co-authored-by: Cursor <[email protected]>1 parent 24d0fb5 commit a1f8ea4
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
| |||
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
82 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
83 | 90 | | |
84 | 91 | | |
85 | 92 | | |
| |||
0 commit comments