Skip to content

Commit 00e41f6

Browse files
committed
Refactor random number generation in JS benchmarks
--- type: pre_push_report description: Results of running various checks prior to pushing changes. report: - task: run_javascript_examples status: na - task: run_c_examples status: na - task: run_cpp_examples status: na - task: run_javascript_readme_examples status: na - task: run_c_benchmarks status: na - task: run_cpp_benchmarks status: na - task: run_fortran_benchmarks status: na - task: run_javascript_benchmarks status: na - task: run_julia_benchmarks status: na - task: run_python_benchmarks status: na - task: run_r_benchmarks status: na - task: run_javascript_tests status: na ---
1 parent df8e320 commit 00e41f6

File tree

4 files changed

+82
-82
lines changed

4 files changed

+82
-82
lines changed

lib/node_modules/@stdlib/stats/base/dists/planck/median/benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bench( pkg, function benchmark( b ) {
3939
len =100;
4040
lambda = new Float64Array( len );
4141
for ( i = 0; i < len; i++ ) {
42-
lambda[ i ] = uniform(0.1, 11);
42+
lambda[ i ] = uniform( 1.0, 10.0);
4343
}
4444

4545
b.tic();

lib/node_modules/@stdlib/stats/base/dists/planck/median/benchmark/benchmark.native.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bench( pkg+'::native', opts, function benchmark( b ) {
4848
len =100;
4949
lambda = new Float64Array( len );
5050
for ( i = 0; i < len; i++ ) {
51-
lambda[ i ] = uniform(0.1, 11);
51+
lambda[ i ] = uniform(1.0, 10.0);
5252
}
5353

5454
b.tic();
Lines changed: 79 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,82 @@
11
{
2-
"options": {
2+
"options": {
3+
"task": "build",
4+
"wasm": false
5+
},
6+
"fields": [
7+
{
8+
"field": "src",
9+
"resolve": true,
10+
"relative": true
11+
},
12+
{
13+
"field": "include",
14+
"resolve": true,
15+
"relative": true
16+
},
17+
{
18+
"field": "libraries",
19+
"resolve": false,
20+
"relative": false
21+
},
22+
{
23+
"field": "libpath",
24+
"resolve": true,
25+
"relative": false
26+
}
27+
],
28+
"confs": [
29+
{
330
"task": "build",
4-
"wasm": false
31+
"wasm": false,
32+
"src": [
33+
"./src/main.c"
34+
],
35+
"include": [
36+
"./include"
37+
],
38+
"libraries": [],
39+
"libpath": [],
40+
"dependencies": [
41+
"@stdlib/math/base/napi/unary",
42+
"@stdlib/math/base/assert/is-nan",
43+
"@stdlib/math/base/special/ceil",
44+
"@stdlib/math/base/special/ln"
45+
]
46+
},
47+
{
48+
"task": "benchmark",
49+
"wasm": false,
50+
"src": [
51+
"./src/main.c"
52+
],
53+
"include": [
54+
"./include"
55+
],
56+
"libraries": [],
57+
"libpath": [],
58+
"dependencies": [
59+
"@stdlib/math/base/assert/is-nan",
60+
"@stdlib/math/base/special/ceil",
61+
"@stdlib/math/base/special/ln"
62+
]
563
},
6-
"fields": [
7-
{
8-
"field": "src",
9-
"resolve": true,
10-
"relative": true
11-
},
12-
{
13-
"field": "include",
14-
"resolve": true,
15-
"relative": true
16-
},
17-
{
18-
"field": "libraries",
19-
"resolve": false,
20-
"relative": false
21-
},
22-
{
23-
"field": "libpath",
24-
"resolve": true,
25-
"relative": false
26-
}
27-
],
28-
"confs": [
29-
{
30-
"task": "build",
31-
"wasm": false,
32-
"src": [
33-
"./src/main.c"
34-
],
35-
"include": [
36-
"./include"
37-
],
38-
"libraries": [],
39-
"libpath": [],
40-
"dependencies": [
41-
"@stdlib/math/base/napi/unary",
42-
"@stdlib/math/base/assert/is-nan",
43-
"@stdlib/math/base/special/ceil",
44-
"@stdlib/math/base/special/ln"
45-
]
46-
},
47-
{
48-
"task": "benchmark",
49-
"wasm": false,
50-
"src": [
51-
"./src/main.c"
52-
],
53-
"include": [
54-
"./include"
55-
],
56-
"libraries": [],
57-
"libpath": [],
58-
"dependencies": [
59-
"@stdlib/math/base/assert/is-nan",
60-
"@stdlib/math/base/special/ceil",
61-
"@stdlib/math/base/special/ln"
62-
]
63-
},
64-
{
65-
"task": "examples",
66-
"wasm": false,
67-
"src": [
68-
"./src/main.c"
69-
],
70-
"include": [
71-
"./include"
72-
],
73-
"libraries": [],
74-
"libpath": [],
75-
"dependencies": [
76-
"@stdlib/math/base/assert/is-nan",
77-
"@stdlib/math/base/special/ceil",
78-
"@stdlib/math/base/special/ln"
79-
]
80-
}
81-
]
82-
}
64+
{
65+
"task": "examples",
66+
"wasm": false,
67+
"src": [
68+
"./src/main.c"
69+
],
70+
"include": [
71+
"./include"
72+
],
73+
"libraries": [],
74+
"libpath": [],
75+
"dependencies": [
76+
"@stdlib/math/base/assert/is-nan",
77+
"@stdlib/math/base/special/ceil",
78+
"@stdlib/math/base/special/ln"
79+
]
80+
}
81+
]
82+
}

lib/node_modules/@stdlib/stats/base/dists/planck/median/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include "stdlib/math/base/special/ln.h"
2222

2323
/**
24-
* Returns the median of a Planck distribution.
24+
*Returns the median of a Planck distribution with shape parameter `lambda`.
2525
*
2626
* @param lambda shape parameter
2727
* @returns median

0 commit comments

Comments
 (0)