From 24fadbf27f7a01624648ed5bea5cce504b3f65d1 Mon Sep 17 00:00:00 2001 From: Athan Reines Date: Wed, 2 Oct 2024 02:16:42 -0700 Subject: [PATCH] bench: fix runner --- .../@stdlib/math/base/special/erf/benchmark/r/benchmark.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node_modules/@stdlib/math/base/special/erf/benchmark/r/benchmark.R b/lib/node_modules/@stdlib/math/base/special/erf/benchmark/r/benchmark.R index 7137cfde36f..ed03895a065 100755 --- a/lib/node_modules/@stdlib/math/base/special/erf/benchmark/r/benchmark.R +++ b/lib/node_modules/@stdlib/math/base/special/erf/benchmark/r/benchmark.R @@ -99,7 +99,7 @@ main <- function() { results <- microbenchmark::microbenchmark( erf( (2.0*runif(1L)) - 1.0 ), times = iterations ); # Sum all the raw timing results to get a total "elapsed" time: - elapsed <- sum( results[[ time ]] ); + elapsed <- sum( results[[ 'time' ]] ); # Convert the elapsed time from nanoseconds to seconds: elapsed <- elapsed / 1.0e9;