1
0
mirror of https://github.com/sstephenson/bats.git synced 2025-03-03 23:39:48 +01:00
bats/libexec
Mike Bland 7bcbb2f3e9
bats: Don't pipe to cat for nonpretty output
Under Bash 3.2.57(1)-release and 4.4.12(1)-release on a MacBook Pro with
a 2.9GHz Intel Core i5 CPU and 8GB 1867MHz DDR3 RAM, this shaves off
O(0.04-0.05s) from the current test suite. Very minor, but it's a
straightforward change that may provide a minor-yet-noticeable effect on
Windows.

Before this change:

  46 tests, 0 failures

  real    0m3.588s
  user    0m2.171s
  sys     0m1.046s

After this change:

  real    0m3.538s
  user    0m2.119s
  sys     0m0.941s
2017-09-30 15:12:38 -04:00
..
bats bats: Don't pipe to cat for nonpretty output 2017-09-30 15:12:38 -04:00
bats-exec-suite
bats-exec-test
bats-format-tap-stream
bats-preprocess preprocess: Eliminate eval in subshell 2017-09-30 15:12:38 -04:00