Unlike the original mod, which has a firing speed 3x faster than the gun turret, my mod is 2.4x faster. Here's why I made this change:
In the code, turrets have a ‘cooldown’ property that expresses how many ticks are between two shots. The gun turret has a cooldown of 6, which means it fires at a rate of 10/s (1s = 60 ticks).
The value of the original heavy gun turret is 2, giving it a firing speed of 30/s.
With shooting speed tech level 6, turrets have a bonus of +150%, or 2.5x their base speed. The gun turret therefore increases to 10 + 15 = 25/s.
The heavy gun turret should increase to 30 + 45 = 75/s. However, the game does not allow a cooldown value lower than 1 tick, so the turret is capped at 30 + 30 = 60/s.
By giving a base cooldown value of 2.5, or 24/s, once the bonus is at its maximum, the turret reaches 24 + 36 = 60/s.
This avoids a situation where one might wonder why the bonus does not apply as one would expect it to (expected at 75/s).
From a balancing perspective, this doesn't change much, given that the heavy gun turret is unlocked with advanced science packs and it's very likely that the shooting speed tech is already maxed out. This therefore won't change the value of 60/s.