// get the Groebner basis for an ideal Q := RationalField(); P := PolynomialRing(Q, 6); I := ideal

; time B := GroebnerBasis(I); B;