News for hackers. Stuff that matters.
Re:Asm-dom, a minimal WebAssembly virtual DOM to build C++ SPA by ithkuil on Monday March 16, 2020 @12:06PM (#22593806)
while clearly, effective instructions per cycle depend on the workload. That said, https://en.wikipedia.org/wiki/Instructions_per_second mentions AMD Ryzen 7 1800X reaching "304,510 MIPS at 3.6 GHz", which would give you a budget of 152 instructions in order to achieve 2 billions of operations per second (I assumed you took the plural to mean "integer plural", i.e. at least 2 billions :-) )

Now, I agree that it's a bit of a stretch to assume DOM operations won't hit some memory fetch bottleneck or something else, but parent's estimate is not miles off.

Re:Asm-dom, a minimal WebAssembly virtual DOM to build C++ SPA by bgirard on Monday March 16, 2020 @01:07PM (#22594617)
DOM operations in this context is single threaded and definitely not deeply pipelined cached friendly code. I benchmark web code using cycles and instructions and I'm finding in practice that we're averaging in the order of 0.5-2 IPC in chrome for the web render process's main thread when running real world code. 152 IPC would be amazing!
Re:Asm-dom, a minimal WebAssembly virtual DOM to build C++ SPA by austincheney on Tuesday March 17, 2020 @06:19AM (#22603470)
I found that Chrome runs these instructions about 20x slower.