Skip to content

Commit

Permalink
add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
shravanasati committed Dec 25, 2023
1 parent 37828bf commit d57a657
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ${yellow}Executed Command: ${green}{{ .Command }} ${reset}
${yellow}Total iterations: ${green}{{ .Iterations }} ${reset}
${yellow}Average time taken: ${green}{{ .Average }} ${reset}
`
// todo add standard deviation to summary

// Consolify prints the benchmark summary of the Result struct to the console, with color codes.
func (result *Result) Consolify() {
Expand Down
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ const (
// NAME is the executable name.
NAME = "bench"
// VERSION is the executable version.
VERSION = "0.3.0"
VERSION = "0.4.0"
)

// NO_COLOR is a global variable that is used to determine whether or not to enable color output.
var NO_COLOR bool = false

func run(command []string, verbose bool, ignoreError bool) (time.Duration, error) {
// todo add shell support
// todo measure shell spawn time too and deduct it from runs
cmd := exec.Command(command[0], command[1:]...)
_, e := cmd.StdoutPipe()
if e != nil {
Expand Down

0 comments on commit d57a657

Please sign in to comment.