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

Pseudorandom number generation in taobench slowpaths #21

Open
ss7pro opened this issue Jul 21, 2022 · 2 comments
Open

Pseudorandom number generation in taobench slowpaths #21

ss7pro opened this issue Jul 21, 2022 · 2 comments

Comments

@ss7pro
Copy link
Contributor

ss7pro commented Jul 21, 2022

Folks,

Is it possible to replace taobench pseudo-random number generation in taobench with implementation we have in feedsim?

@excelle08
Copy link
Contributor

Does folly::Random::rand32() has the same lock contention problem as in std::rand()?

@lukalt
Copy link
Contributor

lukalt commented Nov 22, 2024

Does folly::Random::rand32() has the same lock contention problem as in std::rand()?

No, it uses a thread-local random generator, so no global lock here.

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

No branches or pull requests

3 participants