3 ms·
For some benchmarks Perl6 is faster than Perl5. One person posted to #perl6 on freenode.net code written in both Perl6 and C/C++. They reported that the Perl6
by b2gills 7y ago
For some benchmarks Perl6 is faster than Perl5.
One person posted to #perl6 on freenode.net code written in both Perl6 and C/C++. They reported that the Perl6 code was faster. (I'm sure that the difference is mainly because the C/C++ code had to copy strings around, and iterate over them to locate the null terminators.)
Unless you are doing something where you might consider writing parts of it in assembly, Perl6 may be fast enough already. (I wouldn't write a first person shooter in it yet.)
There are some parts of it that are still in need of optimization. (If you find something that is egregiously slow, file a bug report.)
- SwellJoe 7y agoStartup time is still egregiously slow compared to Perl 5. But, that couldn't be a major determining factor for people working in languages that are also slow to start (of which there are many, probably one could say most are slower than Perl 5). And, it's not a major concern for long-running applications and services, but for one-liners it feel sluggish.
- lizmat 7y agoIf you realize that Perl 6 basically has Moose in its core, and you compare startup time of Perl 5 with Moose with Perl 6, then it's not that bad at all: $ time perl6 -e '' real 0m0.120s $ time perl -MMoose -e '' real 0m0.131s And that's without all of the fancy type checking stuff of several Moose plugins that comes standard with Perl 6. So in that sense, if you are interested in Moose functionality, you're better of in Perl 6.