Permalink
Browse files

Adjust benchmarks

  • Loading branch information...
1 parent 8081f6f commit c94a365ac659d5fad142fffe621f9ccf00591940 @danaj danaj committed Feb 5, 2013
Showing with 3 additions and 2 deletions.
  1. +1 −0 bench/bench-mp-isprime.pl
  2. +2 −2 bench/bench-mp-primecount.pl
@@ -21,5 +21,6 @@ sub test_at_digits {
cmpthese($count,{
'MP' => sub { Math::Primality::is_prime($_) for @nums; },
'MPU' => sub { Math::Prime::Util::is_prob_prime($_) for @nums; },
+ 'MPU GMP' => sub { Math::Prime::Util::GMP::is_prob_prime($_) for @nums; },
});
}
@@ -9,8 +9,8 @@
my $count = shift || -2;
#my($n, $exp) = (100000,9592);
-#my($n, $exp) = (1000000,78498);
-my($n, $exp) = (10000000,664579);
+my($n, $exp) = (1000000,78498);
+#my($n, $exp) = (10000000,664579);
cmpthese($count,{
'MP' =>sub { die unless $exp == Math::Primality::prime_count($n); },
'MPU default' =>sub { die unless $exp == Math::Prime::Util::prime_count($n); },

0 comments on commit c94a365

Please sign in to comment.