29.6. Performance
Fixed-field arithmetic is polynomial arithmetic and scales as the degree suggests: multiplication is quadratic in the degree and inversion cubic with a logarithmic factor for coefficient growth. Everything that isolates roots is dominated by the isolation, so those rows are fixed inputs rather than asymptotics.
operation | input | time |
|---|---|---|
| degree 16, dense coordinates | 0.12 ms |
| degree 16, dense coordinates | 0.71 ms |
| degree 128, fixed precision | 17 ms |
|
| 44 ms |
|
a root of | 1.9 ms |
|
a root of | 310 ms |
|
a root of | 4.5 s |
|
dense degree 6, one | 6.0 s |
Medians on chungus2 from the exports recorded in
reports/hex-number-field-performance.md in the hex-dev repository;
regenerate with .lake/build/bin/hexnumberfield_bench run
Hex.NumberFieldBench.<target>. The last three rows spend over ninety percent
of their time in root isolation of the resultant or eliminant, and the
X⁸ − 2 exactification spends its time re-isolating candidates rather than
factoring.