test: increase iterations on histogram test after snapshot changes

Signed-off-by: Stewart X Addison <sxa@ibm.com>
PR-URL: https://github.com/nodejs/node/pull/67379
Reviewed-By: Philipp Dunkel <pip@pipobscure.com>
Reviewed-By: Christian Aurich Zanettini Martins <christian.aurichzm@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
Stewart X Addison authored and GitHub committed 2026-11-12 14:41:07 +00:00
1 parent 4f23168685
commit 6b0cfafe65
1 file changed
+1 -1
@@ -26,7 +26,7 @@ observer.observe({ entryTypes: ['gc'] });
// triggers a major GC if that memory is reported. The GC trigger and finalization
// can vary depending on V8 internals, so only check the occurrence of a major GC here.
const histogram = createHistogram();
for (let i = 0; i < 400; i++) histogram.snapshot();
for (let i = 0; i < 800; i++) histogram.snapshot();
(async () => {
// Performance entries for garbage collections are delivered asynchronously.