Hard to tell from what we see here, but I can only guess that your bench has one or more errors, as cbxs just cannot be that fast (compared to c_xs). So if you want us to give you a better answer than any wild guess possible, you'll need to post your code and your data.
update: the high line numbers are because I forgot to close $fh at the end of each test. With the close added, here are the new compares:
$ perl5.8.4 test.pl Rate c_pp c_xs cbxs perl c_pp 9.63e-02/s -- -94% -97% -98% c_xs 1.65/s 1616% -- -42% -57% cbxs 2.84/s 2845% 72% -- -27% perl 3.88/s 3932% 135% 37% -- $ perl5.20.1 test.pl Use of uninitialized value in split at test.pl line 13, <$fh> line 200 +000. Use of uninitialized value in split at test.pl line 13, <$fh> line 200 +000. Use of uninitialized value in split at test.pl line 13, <$fh> line 200 +000. Use of uninitialized value in split at test.pl line 13, <$fh> line 200 +000. Rate c_pp c_xs cbxs perl c_pp 8.65e-02/s -- -96% -97% -98% c_xs 2.07/s 2295% -- -27% -53% cbxs 2.84/s 3179% 37% -- -35% perl 4.40/s 4980% 112% 55% --
In reply to Re^4: Need help in reading csv files >1GB for converting into xlsx files in Solaris 10 - Perl v-5.8.4
by Tux
in thread Need help in reading csv files >1GB for converting into xlsx files in Solaris 10 - Perl v-5.8.4
by GT Learner
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |