This page shows the best way to upgrade ships in Starblast.

Limitations

The calculator does not account for ram mining with shield regen, or for upgrading damage past energy capacity for pulse ships.
When loading a preset, the calculator does not ignore lasers that cannot be used for mining.