in reply to Re: bignum rocks 2^43_112_609-1
in thread bignum rocks 2^43_112_609-1
On my computer:
In that case, the perl version is ~15 times faster!!!$ time echo '2^500000-1'|bc >/dev/null real 0m3.057s user 0m2.920s sys 0m0.010s $ time perl -e 'use bigint only => 'GMP'; my $x = 2 ** 500000 - 1; pri +nt $x' >/dev/null real 0m0.201s user 0m0.160s sys 0m0.010s
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: bignum rocks 2^43_112_609-1
by jettero (Monsignor) on Sep 29, 2008 at 15:18 UTC | |
by salva (Canon) on Sep 29, 2008 at 15:45 UTC | |
by syphilis (Archbishop) on Sep 30, 2008 at 12:34 UTC | |
by RatKing (Acolyte) on Oct 06, 2008 at 14:24 UTC | |
by jettero (Monsignor) on Oct 06, 2008 at 14:27 UTC |