Helper() in the standard Go runtime fetches a stack trace from the runtime, so is slow for calls that are made many times. Helper() only makes a difference if the call throws an error, so move it after the test in straightforward cases.