Repository navigation
Conversation
dhardy
approved these changes
Nov 8, 2026
dhardy
left a comment
Member
There was a problem hiding this comment.
LGTM. (Waiting on rand_mwcx release.)
I still have the same machine (Ryzen 5800X), but feel free to replace the benchmark results.
Author
|
Actually, I think it's better if the reported figures are altered as little as possible (e.g., is better if you rerun them). |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds to the RNG guide the generators of
rand_mwcx(rust-random/rngs#125), as suggested in rust-random/rngs#124, and fixes a few things along the way.Mwc128X,Mwc192X, andMwc128X32; the xoshiro website link now reads xoshiro/MWCX, as the site covers both.Mwc64X32is left out, as it is meant for GPUs. The docs.rs links will work oncerand_mwcxis published.Pcg64Dxsm, whichrand_pcgexports but the table did not list.advance(1 << 127), the outputs ofPcg64are the original ones with their 32-bit halves swapped and one bit flipped).ChaCha20Rngin the text (136 bytes) disagreed with the table (320 bytes, which issize_of::<ChaCha20Rng>()today); the text said that no performance figures are given; the xoshiro links pointed to an old domain; the unused references toFromEntropyandEntropyRngare gone.The performance column of the new rows is TBD: the current figures were measured on a Ryzen 9 9950X3D, and figures from a different machine or harness would not be comparable. I think all figures should be recomputed uniformly, with the same harness on the same machine; I'd be happy to help with that.