4 ms·
Your Perl implementation is almost as fast as c++? Something weird is going on here. Maybe you are bottlenecked on disk read speeds or something.
by fallingfrog 4y ago
Your Perl implementation is almost as fast as c++? Something weird is going on here. Maybe you are bottlenecked on disk read speeds or something.
- bjoli 4y agoWhy is that surprising? The perl interpreter is fast and dispatches just about everything to heavily optimized C. Just like python does, it is only better at it. This is the kind of thing where perl really shines.
- theonemind 4y agoNot really surprising. Perl approaches a domain specific language for text processing with a heavily-optimized 34 year old implementation.
- wscott 4y agoThis is what perl was made for and it is good at it. I was going to be very suspicious if Python or Ruby ended up faster. On this chart it it the fact that the simple C++ is so slow that is interesting.