Skip to content

Conversation

@maximecb
Copy link
Contributor

@maximecb maximecb commented Jan 6, 2023

SecureRandom uses crypto-safe randomness sources which can't be seeded, whereas we seed the Random gem's RNG in harness-common.rb This should help the ActiveRecord benchmark behave more deterministically across runs.

Following comment on #159

SecureRandom uses crypto-safe randomness sources which can't be
seeded, whereas we seed the Random gem's RNG in harness-common.rb
This should help the ActiveRecord benchmark behave more
deterministically across runs.
@maximecb maximecb requested review from k0kubun and noahgibbs January 6, 2023 19:37
@k0kubun
Copy link
Member

k0kubun commented Jan 6, 2023

Sounds better, but you still get different created_at/updated_at values every time. I wonder if we can just reuse the whole schema and records like railsbench does.

Copy link
Member

@k0kubun k0kubun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

However, I think we should just merge this first 🙂

@maximecb maximecb merged commit 6a2e227 into main Jan 6, 2023
@maximecb maximecb deleted the random_norandom branch January 6, 2023 20:15
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.

3 participants