mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 18:25:13 +08:00
The existing get-function benchmark reuses the callable cached during warmup, so it no longer measures trampoline creation. Add a cache-miss benchmark that resolves a function once per library instance. Construct the instances before timing to exclude library loading while including symbol resolution, signature preparation, and callable creation. Update the existing benchmark comments to describe cache-hit lookups. Signed-off-by: HoonDongKang <d159123@naver.com> Assisted-by: Codex:Astra-medium PR-URL: https://github.com/nodejs/node/pull/66456 Refs: https://github.com/nodejs/node/pull/64969 Refs: https://github.com/nodejs/node/pull/64971 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>