Closed pgporada closed 7 years ago
Thanks for the suggestion, but echo
is also a bash builtin, so I'm inclined to think that any performance benefit that you saw was accidental. Also, I don't think shaving 10ms of a single test run is worth this many changes to the codebase.
Fair enough, it was still fun.
Sure, I'm thankful that you suggested a potential improvement in the first place! ✨
I ran the pgporada/bats/test/bats.bats 10 times and received the following average time
Compared to sstephenson/bats/test/bats.bats 10 times
It's marginally faster, but it does use more bash features.
All tests are passing
and