When executing a function through the browser compiler, the compiler shows the gas costs, for example:
Transaction cost: 30754 gas. Execution cost: 9290 gas. Are these costs actually identical to the transaction costs on the homestead blockchain (assuming the transaction only executes the given function)? Is it safe to assume that if a certain function is optimized there, it will also be optimized on the live blockchain and vice versa?