in reply to Strawberry: Both IO and global match are VERY SLOW. Unless pre-heated (but why?)
With cygwin's perl-5.38.0 on this same Windows 11 system, I see:Array size: 5000000 split, no pre-heat: 3.296 split, pre-heat: 3.421 match, no pre-heat: 38.257 match, pre-heat: 1.578 io(list), no pre-heat: 38.547 io(list), pre-heat: 1.280
So there's still a 6x slowdown for "match" and "io(list)" - but that's nowhere near as bad as the native windows perl.Array size: 5000000 split, no pre-heat: 3.280 split, pre-heat: 3.265 match, no pre-heat: 6.952 match, pre-heat: 1.734 io(list), no pre-heat: 5.920 io(list), pre-heat: 0.969
Cheers,Array size: 5000000 split, no pre-heat: 10.392 split, pre-heat: 10.533 match, no pre-heat: 3.642 match, pre-heat: 3.593 io(list), no pre-heat: 3.166 io(list), pre-heat: 3.081
|
---|