Differences between revisions 2 and 3
Revision 2 as of 2006-08-21 17:47:24
Size: 1132
Editor: DavidHarvey
Comment: added code attachments
Revision 3 as of 2006-08-21 17:53:55
Size: 1406
Editor: DavidHarvey
Comment: Problems with the methodology
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:

=== Problems with the methodology ===

 * For the very fast operations (e.g. when the degree is very small), it's not clear how much overhead is being incurred by the python interpreter. So I'm not sure how much of the time is really being spent on the multiplication.

This page describes some timing tests I did to compare the speed of polynomial multiplication over Z for MAGMA, NTL and PARI. The timings were performed on sage.math.washington.edu.

Summary of results

(TBA)

Raw output data

(TBA)

The code

  • attachment:poly_multiply_benchmark.sage (runs the timing tests)
  • attachment:make_graphs.sage (generates the pretty graphs)

Methodology

For each pair of degree and coefficient size, and for each system (MAGMA, PARI, NTL), I did the following:

  • Generate a random pair of polynomials and import it into the system.
  • Try multiplying once, see how long that takes. If that took less than half a second, try multiplying twice, see how long that takes. Keep doubling the number of trials until we find some N such that N trials take at least half a second.
  • Time N trials. Divide the answer by N to find out how long each trial took. Do this five times. Report the average of the five samples, and also report the difference between the maximum and minimum (just to make sure we're not being led totally astray by irregularities).

Problems with the methodology

  • For the very fast operations (e.g. when the degree is very small), it's not clear how much overhead is being incurred by the python interpreter. So I'm not sure how much of the time is really being spent on the multiplication.

DavidHarvey/TimingExperiments (last edited 2008-11-14 13:41:55 by localhost)