When we add a compound (salt) to a solvent, the boiling points rises. But, what could we say about the speed the solvent reaches the boiling point? It's better to add salt before or after boiling water while making pasta?
You should add the salt befor you start heating the water.
For the technical details of why this is have a look at Why does salty water heat up quicker than pure water? and Why does adding solutes to pure water lower the the specific heat?. Salt lowers the specific heat of the water so for a given rate of heat input e.g. a given setting on your electric hob, salt water heats up faster than pure water. The reasons salt has this effect are a bit obscure, but are discussed in a paper I reference in my answer to the first question I've linked to.
There's a little more subtlety to the issue than this though. Adding salt increases the boiling point, so you need to get the salt solution hotter to make it boil. However for saturated salt solution the specific heat falls by about 22% while the boiling point only goes up by 8%, so the salt solution still boils faster even taking into account the elevated boiling point.
However salt solution is denser than pure water. Saturated salt solution is about 20% denser than water. So if you take a fixed volume of solution, rather than a fixed mass, the total heat capacity doesn't change much. For saturated salt solution the 22% decrease in specific heat is almost exactly compensated for by the 20% increase in density. Add the 8% elevation in boiling point, and for the same volumes saturated salt solution takes slightly longer to boil.
All of this is fun to calculate, but the small amount of salt used when cooking pasta is unlikely to have much effect.
See http://www.engineeringtoolbox.com/sodium-chloride-water-d_1187.html for various properties of salt solutions.