- or download this
use Benchmark 'cmpthese';
...
Rate Loop RE
Loop 40378/s -- -71%
RE 137552/s 241% --
- or download this
$_ = 'foo bar' x 2000;
...
Rate RE Loop
RE 340/s -- -32%
Loop 503/s 48% -
- or download this
$_ = 'fo ba' x 1000 . 'foo bar';
...
Rate RE Loop
RE 901/s -- -94%
Loop 14065/s 1461% --