Skip to content

Commit 24fadbf

Browse files
committed
bench: fix runner
1 parent 8f0f3b6 commit 24fadbf

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/math/base/special/erf/benchmark/r

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/math/base/special/erf/benchmark/r/benchmark.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ main <- function() {
9999
results <- microbenchmark::microbenchmark( erf( (2.0*runif(1L)) - 1.0 ), times = iterations );
100100

101101
# Sum all the raw timing results to get a total "elapsed" time:
102-
elapsed <- sum( results[[ time ]] );
102+
elapsed <- sum( results[[ 'time' ]] );
103103

104104
# Convert the elapsed time from nanoseconds to seconds:
105105
elapsed <- elapsed / 1.0e9;

0 commit comments

Comments
 (0)