On Monday 11 August 2008 16:10:24 luben karavelov wrote:
> What confuses me a lot is that r30125 change to core.ops just replaces
> "string_from_literal" with "const_string" on one line. I thought that
> const_string is faster because it doesn't need to allocate memory and
> produces less garbage.
Hello,
In order to measure function call performance I am using simple and dumb
fibonacci numbers calculation. It is equivalent to the PIR example in
examples/benchmark/fib.pir
The perl6 code is :
use v6;
sub fib ($n){
return $n if $n<2;
return fib($n-1)+fib($n-2);
}
say fib(22);
H