I don’t know for Spelunky but for Crypt of the Necrodancer (another rogue-like) the in-game speedrun records are on random seeds. Part of the challenge is recognizing the level patterns. After playing hundreds of hours you end up knowing where to go intuitively.