Create your blog and photo album with postbit
Create your blog and photo album

Create new post

Content:

Upload a picture:
Tags (keywords separated by comma)

Save Cancel
perl:   Followers: 2 ; Following: 2

Explore perl's photo albums:
Photos from posts (2)
Perl images (1)

Perl6 performance


Perl 6 Benchmark:

To test Perl 6 speed, I run the mandelbrot.p6 in a few Perl 5 and Perl 6 implementations using my computer (Intel i7-2630QM CPU, 2GHz):

The Mandelbrot Set Algorithm:

Language / Version / OS / Built Run time
(size 200 x 200 px)
Run time
(size 2000 x 2000 px)
Perl 5 (Windows cygwin Perl 5.22 and Linux Perl 5.14) 0.4 seconds 43 seconds
Perl 6, Linux
(old version: 2012.10 built on parrot 4.6.0 revision 0)
70 seconds (too slow, not tested)
Perl 6 for Windows
(Rakudo Star, version 2015.09-x86_64 JIT)
17.5 seconds (too slow, not tested)
Perl 6, Linux
(Rakudo version 2015.12-79-g4bb47d5 built on MoarVM)
14.5 seconds (not tested)
Javascript (Mandelbrot JS) 0.06 seconds
(Chrome browser, PC)
  5.5 seconds (Chrome browser, PC)
17 seconds (Chrome Mobile, Galaxy S5)
9 seconds (Chrome Mobile, Galaxy S6)

 

Perl 6 Linux command line:
time perl6 mandelbrot.p6 200 > image.pbm

Perl 6 Windows command line:
time /c/rakudo/bin/perl6.bat mandelbrot.p6 200 > image.pbm

Perl 5 command line:
time perl mandelbrot.p5.pl 200 > image.pbm

You can see the performance (run time) comparison with other programming langues in the Mandelbrot Set Benchmark.

 

Post by perl (2016-01-03 21:58)

Post your comment:

Name: Email: Site:




| Explore users | New posts | Create your blog | Create your photo album |
| About Postbit | Our blog | Terms of use | Contact Postbit |


Copyright © 2017 - postbit.com