Skip to content

Commit

Permalink
Minor benchmark script improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Melchizedek6809 committed Apr 25, 2024
1 parent e288e91 commit a25db6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ gmon.out
/future-nujel
/tools/emsdk
*.out
*.tmp
*.a
*.com
*.dbg
Expand Down
6 changes: 4 additions & 2 deletions tools/benchmark.nuj
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@
(yellow (pad-end runtime 20))))
(return #nil))
(when (zero? i)
(pfmt "{} {} "
(def testname (cadr (split filename "/")))
(pfmt "{} {} {}"
(blue (pad-end language 14))
(green (pad-end runtime 20))))
(green (pad-end runtime 20))
(yellow (pad-end testname 20))))
(when (>= i 0) (pfmt "{i} "))
(when-not (file/file? filename)
(exception :io-error "Can't open the following file to benchmark it:" filename))
Expand Down

0 comments on commit a25db6a

Please sign in to comment.