Skip to content

Commit 696cf19

Browse files
committed
bench: adjust input range for uniform path coverage
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: passed - task: lint_python status: passed - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: passed - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 5ac2354 commit 696cf19

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/node_modules/@stdlib/math/base/special/gammasgn/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bench( pkg, function benchmark( b ) {
3434
var y;
3535
var i;
3636

37-
x = uniform( 100, 0.0, 171.0 );
37+
x = uniform( 100, -10.0, 10.0 );
3838

3939
b.tic();
4040
for ( i = 0; i < b.iterations; i++ ) {

lib/node_modules/@stdlib/math/base/special/gammasgn/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4343
var y;
4444
var i;
4545

46-
x = uniform( 100, 0.0, 171.0 );
46+
x = uniform( 100, -10.0, 10.0 );
4747

4848
b.tic();
4949
for ( i = 0; i < b.iterations; i++ ) {

lib/node_modules/@stdlib/math/base/special/gammasgn/benchmark/c/native/benchmark.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ static double benchmark( void ) {
9797
int i;
9898

9999
for ( i = 0; i < 100; i++ ) {
100-
x[ i ] = ( 171.0 * rand_double() ) - 0.0;
100+
x[ i ] = ( 100.0 * rand_double() ) - 50.0;
101101
}
102102

103103
t = tic();

lib/node_modules/@stdlib/math/base/special/gammasgn/benchmark/python/scipy/benchmark.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def print_results(elapsed):
7373
def benchmark():
7474
"""Run the benchmark and print benchmark results."""
7575
setup = "from scipy.special import gammasgn; from random import random;"
76-
stmt = "y = gammasgn(171.0*random() - 0.0)"
76+
stmt = "y = gammasgn(100.0*random() - 50.0)"
7777

7878
t = timeit.Timer(stmt, setup=setup)
7979

0 commit comments

Comments
 (0)