diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-10-11 19:38:32 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-10-23 10:40:06 +1100 |
| commit | ed5f2d7c7c673dcbadcf71444251cebe72e6345b (patch) | |
| tree | d113554d0c637cef4945daee1db36ce6a28b106f /src/rt/sync/rust_thread.cpp | |
| parent | e0eb1280867e14bdb123c3b19eda93b8906899d2 (diff) | |
| download | rust-ed5f2d7c7c673dcbadcf71444251cebe72e6345b.tar.gz rust-ed5f2d7c7c673dcbadcf71444251cebe72e6345b.zip | |
std::rand: optimise & document ziggurat.
Before:
test rand::distributions::bench::rand_exp ... bench: 1399 ns/iter (+/- 124) = 571 MB/s
test rand::distributions::bench::rand_normal ... bench: 1611 ns/iter (+/- 123) = 496 MB/s
After:
test rand::distributions::bench::rand_exp ... bench: 712 ns/iter (+/- 43) = 1123 MB/s
test rand::distributions::bench::rand_normal ... bench: 1007 ns/iter (+/- 81) = 794 MB/s
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
0 files changed, 0 insertions, 0 deletions
