Those results are different than what I would expect.
On perl, v5.10.0 built for i486-linux-gnu-thread-multi, I get what I'd expect:
Rate OP while_shift regex ike2 chromatic + ike1 OP 245/s -- -17% -28% -38% -48% + -50% while_shift 297/s 21% -- -13% -26% -36% + -39% regex 340/s 39% 15% -- -15% -27% + -31% ike2 398/s 63% 34% 17% -- -15% + -19% chromatic 467/s 91% 57% 37% 17% -- + -5% ike1 490/s 100% 65% 44% 23% 5% + --
On perl 5, version 12, subversion 0 (v5.12.0-RC1) built for i686-linux, I the same results.
Rate OP while_shift regex ike2 chromatic + ike1 OP 117/s -- -22% -28% -42% -52% + -54% while_shift 151/s 29% -- -7% -25% -38% + -41% regex 163/s 39% 8% -- -19% -33% + -36% ike2 202/s 72% 33% 24% -- -18% + -21% chromatic 244/s 109% 62% 50% 21% -- + -4% ike1 254/s 117% 68% 56% 26% 4% + --
The two extra tests are:
ike1 => sub { my @poly = map [ (split /,/, $_)[0, 1] ], split ' ', $coords; }, ike2 => sub { my @poly = map [ /([^,]*),([^,]*)/ ], split ' ', $coords; },
In reply to Re^2: Fastest way to turn coordinate list into array
by ikegami
in thread Fastest way to turn coordinate list into array
by brancusi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |