From d57a65770ec1005051f16ef4abcf3f823da60885 Mon Sep 17 00:00:00 2001 From: Shravan Asati Date: Mon, 25 Dec 2023 17:23:37 +0530 Subject: [PATCH] add todos --- internal/export.go | 1 + main.go | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/export.go b/internal/export.go index a759b50..6a6362d 100644 --- a/internal/export.go +++ b/internal/export.go @@ -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() { diff --git a/main.go b/main.go index d48453e..d416594 100644 --- a/main.go +++ b/main.go @@ -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 {