smartystreets/goconvey — pull request #179 by logan (2014-04-01 02:04:04+00:00)
Title: Use return value of runtime.Stack to trim stack trace.

I have a package with about 300 assertions. This change reduces test time from 1.5s to 0.5s on my machine. It turns out scanning through a 64KB buffer on every assertion is expensive.

Is it really necessary for stack traces to be generated for success reports? The filtering of goconvey paths from each trace dominates cpu time if there's not much work being done between assertions.