spring/spring — comment on commit 39496262fb39eb169f28d908ed4c31425b4b901a
File:  line 0
By zerver:

Hard to give any good numbers since my loop-based testing included other code as well.

The relative numbers I got were something like
Random: Indexing 75%, Branching 100% (i'm guessing here that indexing is twice as fast as branching)
Constant: Indexing 100%, Branching 60% (and here branching is maybe three times faster than indexing)

I can do more exact testing if you wish, to eliminate the uncertainty factor from the other code.