@Iranon: I tested it by creating two ships, one of each class, dividing them, and setting one to follow the other at 80k distance. One on one, due to the tracking speed, some of the crucial salvos of the laser ship miss, while the railguns, due to their multitude of pellets, have more chances to hit. In general, I saw an almost 50% higher effective DPS from the railgun than the laser.
It was simultaneous. They both fired at each other on the same tick one I gave one fleet to the AI.
However, just a few moments ago, I tried the same setup but this time used 2 and 3 ships per fleet, and the lasers won every time. I think in hindsight, one on one, if I had matched the tracking speed with the actual speed of the ship, the laser would've won. But then again, the railgun might've had a damage advantage, if I tried to force the laser ship to be 6000 tons.
So I made a 7000 ton laser ship, and put it up against the railgun boat II, as is. The railgun won. Even two on two. I think that extra layer of armor really messes those 6 damage lasers up. I think it's a matter of 'sweet spot' for both of the weapons. Personally, if I roll out railgun boats, I always do it at biphaside carbide armor, which is being used in this testing-- but, I always use 8 layers of armor.
It takes about 6 to 7 salvos for the railguns to kill the laser boats, but only 3 or 4, for the lasers to kill the railguns. Honestly, I am a railgun fan, but even I can see that when lasers are done right, they can be amazingly powerful. So long as you are not chasing a ship that is faster than you or your tracking speed. It's expensive, RP-wise, but worth it. In the same vein, once you get to 30cm railguns, it won't matter how often you shoot, because when you fire 4 or 5 of those babies, from 2 or 3 ships, you will kill with shock damage alone.
Against AI, I actually think railguns perform better, because the AI tends to build massive ships, and some of them, have a lot of armor. Like, we are talking 8-60. It is so hard to penetrate the same spot twice against those ships, with a low volume of fire. A railgun doesn't really bother with that. Like, it literally doesn't care. On one hand, shock damage will theoretically do the job, but on the other hand, the volume of fire is so high, that it will carve up the armor almost like a missile does, making each subsequent shot all the more effective.
Before I used railguns, I did use lasers and gauss turrets. When I came up against ships like these, I would actually use my gauss PD turrets to chew up the armor before I used the lasers. 20 seconds of that, and I was good to go for lasers. I actually made the change to railguns because of this, because 'if I am close enough to fire the gauss, I should just switch to railguns'- and the combo is amazingly effective. In the off rounds when your railgun is recharging, if your capacitor tech is too low, your gauss are just setting the stage for the end game. But the same applies to lasers, but you really feel the pain when you use that as a main tactic, while having sun so much RP into range.