Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Camel vs. Gopher

by pwagyi (Monk)
on Apr 28, 2019 at 14:57 UTC ( [id://1233083] : note . print w/replies, xml ) Need Help??


in reply to Re: Camel vs. Gopher
in thread Camel vs. Gopher

IMO. OP comparison itself doesn't say much which lang is faster. Yours is slightly faster since 1..N does not create huge ass array in memory (since some version of Perl) whereas OP version does need to create/allocate 10_000_000 ints. (since it's stored in array)

Replies are listed 'Best First'.
Re^3: Camel vs. Gopher
by Your Mother (Archbishop) on Apr 28, 2019 at 17:28 UTC

    400% is not a slight speedup :|