Skip to content

Commit

Permalink
add flops arg to benchmarker
Browse files Browse the repository at this point in the history
  • Loading branch information
wrathematics committed Jun 25, 2020
1 parent 4bb0df6 commit 2d77fd8
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion R/bench.r
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,16 @@ benchR6 = R6::R6Class("bench",

relative = round(private$elapsed / m, 2)
tbl = cbind(private$elapsed, private$reps, avg, relative)
colnames(tbl) = private$get_colnames()
cn = private$get_colnames()

if (!is.null(private$flops))
{
flops = private$flops / avg / 1000^3
tbl = cbind(tbl, flops)
cn = c(cn, "gflops")
}

colnames(tbl) = cn
rownames(tbl) = private$names

tbl
Expand Down

0 comments on commit 2d77fd8

Please sign in to comment.