Rate of fire is very influenced by the voltage of your batterie. Next you have the gear ratio, type of motor and the strenght of your spring.
If your goal is a "realsim ROF", try to have 750–1,000 rounds per minute (reference wikipedia).
__________________
|