Tools to actually help with this problem visible at
Re^2: profiling XS routines. (edited as requested; one person said a hyperlink to https://perlmonks.org/?node_id=11144333 logs people out, which seems unlikely - however there are 6 different sites, and an id://blah link is canonically correct whichever one you're on, instead of linking to the wrong site)