Depends on the algorithm... the ones used with http typically have less overhead for decompression than compression.
If you mean code minification, that can depend, but in general with tree shaking it shouldn't be slower, typically. The computer doesn't care if a variable is aa or myDescriptiveVariableName.