The relative speed of the Pokemon only determines the power of Gyro Ball/Electro Ball. All other normal factors will still apply - that is the Attack/Special Attack and Defence/Special Defence stats still mater, crits, held items, etc, will all still affect the final damage done by the attack.
Source: Experience