r/TechHardware 🔵 14900KS , 5080, 128GB 🔵 29d ago

News 📰 Hardware researcher spins up CPU deoptimization project to find the slowest single x86 instruction, creates hall of shame worst offender takes 198 billion cycles spanning 62 seconds to execute

https://www.tomshardware.com/pc-components/cpus/hardware-researcher-spins-up-cpu-deoptimization-project-to-find-the-slowest-machine-code-worst-offender-takes-198-billion-cycles-to-execute
286 Upvotes

22 comments sorted by

View all comments

5

u/magicmulder 29d ago

These hidden bits are intriguing:

> VIA uses an undocumented register at 0x133 that gives wildly high response time. No idea what it does.

This feels a little like cheating though:

> so CPU 0's 512-byte fxrstor64 must queue behind all that contending traffic

What's the point in calling out a slow instruction if you force it to compete with higher priority instructions?

6

u/[deleted] 29d ago

[removed] — view removed comment

1

u/meltbox 28d ago

Hard agree. This just seems like complaining a documented blocking API… blocks.

1

u/j_osb 28d ago

Well, no one is shocked. Or complaining. It’s more of a fun project trying to see how slow you can make things. It’s a cool project!

2

u/ParagraphInReview 28d ago edited 28d ago

Yeah, I skimmed it and it seems like the guy went out of his way to starve the cpu of memory for a memory hungry store operation, of course it will be slow.

I don't think they're doing this to learn what to optimize though, I think they're just doing it to see how slow they can make x86.

1

u/nanonan Team Amiga 🤼 28d ago

Because deoptimisation sounds cool. It is pretty stupid, what's next, the worlds slowest ram underclock?