@@ -44,7 +44,7 @@ export function getProfilerConfig(
4444export async function createBufferedEvents ( ) : Promise < void > {
4545 const bM1 = `buffered-mark-${ process . pid } ` ;
4646 performance . mark ( bM1 , asOptions ( markerPayload ( { color : 'tertiary' } ) ) ) ;
47- const intervalDelay = Math . floor ( Math . random ( ) * 150 ) + 50 ;
47+ const intervalDelay = Math . floor ( Math . random ( ) * 50 ) + 25 ;
4848 await new Promise ( resolve => setTimeout ( resolve , intervalDelay ) ) ;
4949 performance . measure ( `buffered-${ process . pid } ` , {
5050 start : bM1 ,
@@ -67,20 +67,20 @@ export async function performDummyWork(
6767 tooltipText : `Process ${ process . pid } started` ,
6868 } ) ;
6969
70- // Random number of intervals (2-5)
71- const numIntervals = Math . floor ( Math . random ( ) * 4 ) + 2 ;
70+ // Random number of intervals (1-3) - reduced from 2-5
71+ const numIntervals = Math . floor ( Math . random ( ) * 3 ) + 1 ;
7272
7373 for ( let interval = 0 ; interval < numIntervals ; interval ++ ) {
74- // Random interval delay (50-200ms )
75- const intervalDelay = Math . floor ( Math . random ( ) * 150 ) + 50 ;
74+ // Random interval delay (25-100ms )
75+ const intervalDelay = Math . floor ( Math . random ( ) * 75 ) + 25 ;
7676 await new Promise ( resolve => setTimeout ( resolve , intervalDelay ) ) ;
7777
78- // Random number of work packages per interval (1-5 )
79- const numWorkPackages = Math . floor ( Math . random ( ) * 5 ) + 1 ;
78+ // Random number of work packages per interval (1-3 )
79+ const numWorkPackages = Math . floor ( Math . random ( ) * 3 ) + 1 ;
8080
8181 for ( let pkg = 0 ; pkg < numWorkPackages ; pkg ++ ) {
82- // Random work size (100-5000 elements)
83- const workSize = Math . floor ( Math . random ( ) * 5_000_000 ) ;
82+ // Random work size (100-2,500,000 elements)
83+ const workSize = Math . floor ( Math . random ( ) * 2_500_000 ) ;
8484
8585 profiler . measure (
8686 `process-${ process . pid } :interval-${ interval } :work-${ pkg } ` ,
0 commit comments