Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by anonymousDan

10 hours ago

Would a better benchmark not just use some kind of pseudo randomly generated sequence to avoid having two arrays?

1 comment

anonymousDan

Reply

sestep  3 hours ago

Unclear if that'd be "better" but definitely something to compare against! Here's a related post by someone else that measures more of what you're talking about: https://lemire.me/blog/2018/03/24/when-shuffling-large-array...

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities