Goldman Sachs invests $250M in compressed air energy storage 5 years ago
Not a single "hot air" joke? Not sure to be impressed everyone's more mature than me or disappointed.
HN user
Not a single "hot air" joke? Not sure to be impressed everyone's more mature than me or disappointed.
Ah I see, I assumed it was a penalty for only mis-guessed, not the number of cycles required to evaluate the statement. Thanks!
Is this correct? "Without branch prediction, we then expect the “average” instruction to take branch_pct * 1 + non_branch_pct * 20 = 0.8 * 1 + 0.2 * 20 = 0.8 + 4 = 4.8 cycles"
other than branch_pct and non_branch_pct being reversed, this seems to be assuming that 100% of branches are guessed incorrectly. Shouldn't something like 50% be used, to assume a random guess? ie 0.8 * 1 + 0.2 * (0.5 * 20 + 0.8 * 1)=2.96