frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Open in hackernews

Operation Costs in CPU Clock Cycles (2016)

http://ithare.com/infographics-operation-costs-in-cpu-clock-cycles/
26•limoce•5h ago

Comments

net01•5h ago
you can find a better table here with most operations and time:

https://uops.info/table.html

supports most modern and old architectures

bee_rider•5h ago
I think it is a totally different type of table. Yours is real data. Theirs is more like a ballpark. Maybe there could be some use for the latter? Just to help folks reason about performance.

Although, reasoning about performance can be hard anyway.

Liftyee•4h ago
I agree with this. As someone who's not an expert in assembly and CPU architecture the "simplified" estimates in a condensed log-chart format was much more insightful. The exact data for specific architectures would be useful for more advanced users than me, but it doesn't offer the same quick "big picture" overview.
bee_rider•3h ago
Did you get a chance to use it? I’ve only just come across this table now, so I haven’t bad a chance to actually try and use it for anything, so I wouldn’t be able to evaluate the usefulness.

I have a sneaking suspicion that this table is satisfying for our brains as a vaguely technical and interesting thing, but I’m not sure how useful it really is. In general the compiler will be really creative in reordering instructions, and the CPU will also be creative about which ones it runs parallel (since it is good at discovering instruction level parallelism). So, I wonder if the level of study necessary to use this information also requires the level of data that is available in the detailed table.

I have not done much caring about instructions, it seems very hard. FWIW I have had some success caring about reducing the number of trips to memory and making sure the dependencies are obvious to the computer, so I’m not totally naive… but I think that caring about instruction timing is mostly for the real hardcore optimization badasses.

owlbite•2h ago
Trying to reduce high end processor performance to "operation X takes Y cycles" likely confuses the uninitiated more than it helps once you get beyond "cache miss bad".

For the uninitiated, most high-performance CPUs of recent years:

- Are massively out-of-order. It will run any operation that has all inputs satisfied in the next slot of the right type available.

- Have multiple functional units. A recent apple CPU can and will run 5+ different integer ops, 3+ load/stores and 3+ floating point ops per cycle if it can feed them all. And it may well do zero-cost register renames on the fly for "free".

- Functional units are pipelined, you can throw 1 op in the front end of the pipe each cycle, but the result sometimes isn't available for consumption until maybe 3-20 cycles later (latency depends on the type of the op and if it can bypass into the next op executed).

- They will speculate on branch results and if they get them wrong it needs to flush the pipeline and do the right thing.

- Assorted hazards may give +/- on the timing you might get in a different situation.

torium•2h ago
The x-axis is in CPU cycles (10^0 means 1 cycle).

If you CPU runs on 1000MHz that's 10^9 cycles per second. On that CPU the right hand side of the picture corresponds to 1ms. You can do 1 million register-register operations in 1ms, or 1 billion in 1sec.

Computers are fast.

stephencanon•1h ago
Worth noting that division (integer, fp, and simd) has gotten much cheaper in the last decade. Division is partially pipelined on common microarchitectures now (capable of delivering a result every 2-4 cycles) and have greatly reduced latency from ~30-80 cycles down to ~10-20 cycles.

This improvement is sufficient to tip the balance toward favoring division in some algorithms where historically programmers went out of their way to avoid it.

Future AI bills of $100k/yr per dev

https://blog.kilocode.ai/p/future-ai-spend-100k-per-dev
117•twapi•51m ago•54 comments

Wikimedia Foundation Challenges UK Online Safety Act Regulations

https://wikimediafoundation.org/news/2025/08/11/wikimedia-foundation-challenges-uk-online-safety-act-regulations/
536•danso•6h ago•183 comments

I tried every todo app and ended up with a .txt file

https://www.al3rez.com/todo-txt-journey
458•al3rez•4h ago•323 comments

GitHub is no longer independent at Microsoft after CEO resignation

https://www.theverge.com/news/757461/microsoft-github-thomas-dohmke-resignation-coreai-team-transition
448•Handy-Man•3h ago•271 comments

The Associated Press tells its book critics that it's ending weekly reviews

https://dankennedy.net/2025/08/08/the-associated-press-tells-its-book-critics-that-its-ending-weekly-reviews/
35•thm•1h ago•3 comments

OpenSSH Post-Quantum Cryptography

https://www.openssh.com/pq.html
249•throw0101d•6h ago•75 comments

The Demographic Future of Humanity: Facts and Consequences [pdf]

https://www.sas.upenn.edu/~jesusfv/Slides_London.pdf
26•akyuu•1h ago•28 comments

Claude Is the Drug, Cursor Is the Dealer

https://middlelayer.substack.com/p/i-claude-is-the-drug-cursor-is-the
39•logan1085•2h ago•15 comments

The Value of Institutional Memory

https://timharford.com/2025/05/the-value-of-institutional-memory/
35•leoc•1h ago•10 comments

Trellis (YC W24) Is Hiring: Automate Prior Auth in Healthcare

https://www.ycombinator.com/companies/trellis/jobs/Cv3ZwXh-forward-deployed-engineers-all-levels-august-2025
1•jackylin•1h ago

The Joy of Mixing Custom Elements, Web Components, and Markdown

https://deanebarker.net/tech/blog/custom-elements-markdown/
29•deanebarker•2h ago•13 comments

Neki – sharded Postgres by the team behind Vitess

https://planetscale.com/blog/announcing-neki
16•thdxr•47m ago•0 comments

UI vs. API. vs. UAI

https://www.joshbeckman.org/blog/practicing/ui-vs-api-vs-uai
20•bckmn•2h ago•11 comments

Byte Buddy is a code generation and manipulation library for Java

https://bytebuddy.net/
16•mooreds•3d ago•4 comments

Claude Code is all you need

https://dwyer.co.za/static/claude-code-is-all-you-need.html
296•sixhobbits•4h ago•183 comments

Pricing Pages – A Curated Gallery of Pricing Page Designs

https://pricingpages.design/
122•finniansturdy•6h ago•36 comments

The Chrome VRP Panel has decided to award $250k for this report

https://issues.chromium.org/issues/412578726
431•alexcos•12h ago•232 comments

Launch HN: Halluminate (YC S25) – Simulating the internet to train computer use

22•wujerry2000•3h ago•21 comments

36B solar mass black hole at centre of the Cosmic Horseshoe gravitational lens

https://academic.oup.com/mnras/article/541/4/2853/8213862?login=false
67•bookofjoe•4h ago•45 comments

Learn, Reflect, Apply, Prepare: The Four Daily Practices That Changed How I Live

https://opuslabs.substack.com/p/learn-reflect-apply-prepare
15•opuslabs•2h ago•0 comments

Porting to OS/2 – GitPius

https://gitpi.us/article-archive/porting-to-os2/
21•rbanffy•3d ago•0 comments

Designing Software in the Large

https://dafoster.net/articles/2025/07/22/designing-software-in-the-large/
42•davidfstr•4h ago•13 comments

Wikipedia loses challenge against Online Safety Act verification rules

https://www.bbc.com/news/articles/cjr11qqvvwlo
75•phlummox•2h ago•35 comments

Washington, DC police put under federal control, National Guard deployed

https://www.cnbc.com/2025/08/11/trump-washington-crime-fed-national-guard-homeless.html
33•pwim•37m ago•6 comments

How Boom uses software to accelerate hardware development

https://bscholl.substack.com/p/move-fast-and-dont-break-safety-critical
10•flabber•23h ago•3 comments

Faster substring search with SIMD in Zig

https://aarol.dev/posts/zig-simd-substr/
149•todsacerdoti•9h ago•44 comments

Mistral Integration Improved in Llama.cpp

https://github.com/ggml-org/llama.cpp/pull/14737
48•decide1000•8h ago•3 comments

Apache Iceberg V3 Spec new features for more efficient and flexible data lakes

https://opensource.googleblog.com/2025/08/whats-new-in-iceberg-v3.html
31•talatuyarer•1h ago•2 comments

A Global Look at Teletext

https://text-mode.org/?p=23643
52•aqua_worm_hole•7h ago•15 comments

A simple pixel physics simulator in Rust using Macroquad

https://github.com/gale93/sbixel
30•sbirulo•4d ago•1 comments