84.277 μs (1669 allocations: 64.62 KiB)
+@btime gcd(gcd($f, $g), $h)
85.219 μs (1669 allocations: 64.62 KiB)
3 + x
With Groebner.jl:
F = [f, g, h]
-@btime groebner($F)
152.125 μs (2706 allocations: 160.52 KiB)
+@btime groebner($F)
150.671 μs (2706 allocations: 160.52 KiB)
1-element Vector{DynamicPolynomials.Polynomial{DynamicPolynomials.Commutative{DynamicPolynomials.CreationOrder}, MultivariatePolynomials.Graded{MultivariatePolynomials.LexOrder}, Rational{BigInt}}}:
3//1 + x