Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document generation of array types using fill; support Wrapping types #812

Merged
merged 2 commits into from
Jun 3, 2019

Conversation

dhardy
Copy link
Member

@dhardy dhardy commented Jun 3, 2019

I ran a few benchmarks (using thread_rng and x86_64):

# 1 kiB of u64:
test gen_1k_fill          ... bench:         335 ns/iter (+/- 24) = 3056 MB/s
test gen_1k_gen_array     ... bench:         249 ns/iter (+/- 18) = 4112 MB/s
test gen_1k_iter_repeat   ... bench:         335 ns/iter (+/- 9) = 3056 MB/s
test gen_1k_sample_iter   ... bench:         328 ns/iter (+/- 11) = 3121 MB/s
# 1 kiB of u32:
test gen_1k_fill          ... bench:         329 ns/iter (+/- 17) = 3112 MB/s
test gen_1k_gen_array     ... bench:         476 ns/iter (+/- 11) = 2151 MB/s
test gen_1k_iter_repeat   ... bench:         652 ns/iter (+/- 18) = 1570 MB/s
test gen_1k_sample_iter   ... bench:         630 ns/iter (+/- 10) = 1625 MB/s
# 1 kiB of u16:
test gen_1k_fill          ... bench:         330 ns/iter (+/- 6) = 3103 MB/s
test gen_1k_gen_array     ... bench:         933 ns/iter (+/- 135) = 1097 MB/s
test gen_1k_iter_repeat   ... bench:       1,299 ns/iter (+/- 61) = 788 MB/s
test gen_1k_sample_iter   ... bench:       1,250 ns/iter (+/- 25) = 819 MB/s

src/lib.rs Show resolved Hide resolved
@dhardy
Copy link
Member Author

dhardy commented Jun 3, 2019

CI failures because of the dyn deprecation thing and forbidding warnings in docs. Lets do another PR for that; you want to?

@dhardy dhardy merged commit 22155f1 into rust-random:master Jun 3, 2019
@dhardy dhardy deleted the doc branch June 3, 2019 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants