sub foo { $_[0] } Number of elements to sort : 456983 Without Schwartzian transform : 4.680 seconds With ++ Schwartzian transform : 2.053 seconds