Skip to content

Commit ce59c9c

Browse files
vksdhardy
authored andcommitted
Benchmark specialized distribution implementations
1 parent fde4113 commit ce59c9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rand_distr/benches/distributions.rs

+4
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ macro_rules! distr_arr {
108108

109109
// distributions
110110
distr_float!(distr_exp, f64, Exp::new(1.23 * 4.56).unwrap());
111+
distr_float!(distr_exp1_specialized, f64, Exp1);
112+
distr_float!(distr_exp1_general, f64, Exp::new(1.).unwrap());
111113
distr_float!(distr_normal, f64, Normal::new(-1.23, 4.56).unwrap());
114+
distr_float!(distr_standardnormal_specialized, f64, StandardNormal);
115+
distr_float!(distr_standardnormal_general, f64, Normal::new(0., 1.).unwrap());
112116
distr_float!(distr_log_normal, f64, LogNormal::new(-1.23, 4.56).unwrap());
113117
distr_float!(distr_gamma_large_shape, f64, Gamma::new(10., 1.0).unwrap());
114118
distr_float!(distr_gamma_small_shape, f64, Gamma::new(0.1, 1.0).unwrap());

0 commit comments

Comments
 (0)