frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

A 40-line fix eliminated a 400x performance gap

https://questdb.com/blog/jvm-current-thread-user-time/
72•bluestreak•1h ago

Comments

jerrinot•1h ago
Author here. After my last post about kernel bugs, I spent some time looking at how the JVM reports its own thread activity. It turns out that "What is the CPU time of this thread?" is/was a much more expensive question than it should be.
Neywiny•1h ago
Did you look into the large spread on your distributions? Some of these span multiple orders of magnitude which is interesting
jerrinot•59m ago
Fair point. These were run on a standard dev workstation under load, which may account for the noise. I haven't done a deep dive into the outliers yet, but the distribution definitely warrants a more isolated look.
jacquesm•41m ago
I don't think it is possible to talk about fractions of nanoseconds without having an extremely good idea of the stability and accuracy of your clock. At best I think you could claim there is some kind of reduction but it is super hard to make such claims in the absolute without doing a massive amount of prep work to ensure that the measured times themselves are indeed accurate. You could be off by a large fraction and never know the difference. So unless there is a hidden atomic clock involved somewhere in these measurements I think they should be qualified somehow.
rcxdude•35m ago
Stability and accuracy, when applied to clocks, are generally about dynamic range, i.e. how good is the scale with which you are measuring time. So if you're talking about nanoseconds across a long time period, seconds or longer, then yeah, you probably should care about your clock. But when you're measuring nanoseconds out of a millisecond or microsecond, it really doesn't matter that much and you're going to be OK with the average crystal oscillator in a PC. (and if you're measuring a 10% difference like in the article, you're going to be fine with a mechanical clock as your reference if you can do the operation a billion times in a row).
jacquesm•16m ago
This setup is a user space program on a machine that is not exclusively dedicated to the test running all kinds of interrupts (and other tasks) left, right and center through the software under test.
6r17•30m ago
Very thankful for the 1liner tldr

edit : I had an afterthought about this because it ended up being a low quality comment ;

Bringing up such TLDR give a lot of value to reading content, especially on HN, as it provides way more inertia and let focus on -

reading this short form felt like that cool friend who gave you a heads up.

jerrinot•26m ago
I was unsure whether to post it or not so I am glad you found it useful!
6r17•22m ago
I have that 10-30s time window to fill when claude might be loading some stuff ; the 1 liner is exactly what fits in that window - it makes me wonder about the original idea of twitter now that I think of it - but since it's not the same kind of content I don't bother with it.It really feels like "here is the stuff, here's more about it if you want to" - really really appreciate that form and will definitely do the same format myself
ee99ee•45m ago
This is such a great writeup
higherhalf•10m ago
clock_gettime() goes through vDSO, avoiding a context switch. It shows up on the flamegraph as well.
a-dub•4m ago
edit: agh, no. CLOCK_THREAD_CPUTIME_ID falls through the vdso to the kernel.
jerrinot•4m ago
Only for some clocks (CLOCK_MONOTONIC, etc) and some clock sources. For VIRT/SCHED, the vDSO shim still has to invoke the actual syscall. You can't avoid the kernel transition when you need per-thread accounting.
ot•3m ago
If you look below the vDSO frame, there is still a syscall. I think that the vDSO implementation is missing a fast path for this particular clock id (it could be implemented though).
jerrinot•2m ago
Exactly this.

NewPipe 0.28.1 released bringing tons of fixes and improvements

https://newpipe.net/blog/pinned/announcement/newpipe-0.28.1-released/
1•cyb0rg0•1m ago•1 comments

A Chrome extension plugin featuring a magical particle mouse cursor effect

https://chromewebstore.google.com/detail/crazy-cursor-magical-part/eejfljdgkaanachdckmpmfgjhncihfmd
1•spacedogs•3m ago•0 comments

The Killing Fields of Tehran

https://www.thefp.com/p/the-killing-fields-of-tehran
2•mhb•3m ago•0 comments

Logitech caused its mice to freak out by not renewing a certificate

https://www.theverge.com/news/857377/logitech-macos-logi-options-mouse-certification-fix
1•abdelhousni•7m ago•0 comments

AVX-512: First Impressions on Performance and Programmability

https://shihab-shahriar.github.io//blog/2026/AVX-512-First-Impressions-on-Performance-and-Program...
1•shihab•8m ago•0 comments

StackChan is a cute, community-build, open-source AI desktop robot(Crowdfunding)

https://www.cnx-software.com/2026/01/13/m5stack-stackchan-is-a-cute-open-source-ai-desktop-robot/
2•meganetaaan•9m ago•0 comments

Contrary to popular belief, EV sales growth continued to accelerate in 2025

https://electrek.co/2026/01/13/contrary-to-popular-belief-ev-sales-growth-continued-to-accelerate...
3•breve•10m ago•0 comments

CoreWeave Overhyped AI Computing Capacity After IPO, Suit Says

https://news.bloomberglaw.com/securities-law/coreweave-overhyped-ai-computing-capacity-after-ipo-...
1•zerosizedweasle•16m ago•0 comments

We may know what a healthy gut microbiome looks like

https://www.newscientist.com/article/2508109-we-may-finally-know-what-a-healthy-gut-microbiome-lo...
1•herbertl•18m ago•0 comments

Show HN: Vibe scrape with AI Web Agents, prompt => get data [video]

https://www.youtube.com/watch?v=ggLDvZKuBlU
4•arjunchint•21m ago•1 comments

Smaller houses can lead to happier lives

https://www.washingtonpost.com/climate-environment/2026/01/06/smaller-houses-happier-lives/
3•bigwheels•25m ago•2 comments

A quick blog template built using NextJS and SleekCMS

https://github.com/sleekcms/sleekcms-next-blog
1•yusufnb•28m ago•0 comments

Are You Dead?: The viral Chinese app for young people living alone

https://www.bbc.com/news/articles/c3381r5nnn6o
2•bookofjoe•29m ago•1 comments

China's green power in Angola: When clean energy comes with heavy debt

https://globalvoices.org/2025/12/17/chinas-green-power-in-angola-when-clean-energy-comes-with-hea...
2•PaulHoule•30m ago•0 comments

My Productivity went up by 40%, I started talking to my docs instead of reading

https://www.yanna.pro/
2•adamazak•32m ago•0 comments

Germany Bashes Lunatic RFK Jr for Lying About Their Healthcare

https://www.youtube.com/watch?v=lE6saiibGkg
4•doener•32m ago•0 comments

Hello/Goodbye to Milo

https://joinmilo.substack.com/p/hellogoodbye
2•JacobAldridge•33m ago•0 comments

The $LANG Programming Language

25•dang•34m ago•4 comments

I guess that I am the one who has changed (2001)

https://everything2.com/user/psicotec/writeups/I%20guess%20that%20I%20am%20the%20one%20who%20has%...
1•davidja•35m ago•0 comments

Trump urges Tehran to show protesters humanity amid reports of rising death toll

https://apnews.com/article/iran-protests-trump-80f937dfbb3e04e5322dae30db3ad4b3
4•mhb•39m ago•1 comments

Google releases MedGemma 1.5 4B with medical image interpretation

https://research.google/blog/next-generation-medical-image-interpretation-with-medgemma-15-and-me...
2•MysticOracle•43m ago•0 comments

Show HN: Free Personal Password Manager

https://hypervault.com/insights/lets-make-it-personal-we-said
3•glennhv•47m ago•0 comments

Magnolia1234/bypass-paywalls-Firefox-clean

https://gitflic.ru/project/magnolia1234/bypass-paywalls-firefox-clean
2•OutOfHere•48m ago•2 comments

Generative AI – Human Interface Guidelines

https://developer.apple.com/design/human-interface-guidelines/generative-ai
2•Austin_Conlon•50m ago•0 comments

C64M: Commodore 64 Markup Language

https://www.youtube.com/watch?v=mZ2AzBbbrGw
1•bane•52m ago•0 comments

Supercharging S3 Intelligent Tiering with Content Crush

https://tech.scribd.com/blog/2026/content-crush.html
1•jaredwiener•56m ago•0 comments

Consumers Can Fight the Credit Card Industry

https://theprogressiveinvestor.org/how-consumers-can-fight-the-credit-card-industry/
1•chuckepstein•58m ago•2 comments

Ask HN: How are you preventing LLM hallucinations in production systems?

1•kundan_s__r•59m ago•2 comments

Never-before-seen Linux malware is "more advanced than typical"

https://arstechnica.com/security/2026/01/never-before-seen-linux-malware-is-far-more-advanced-tha...
3•jnord•1h ago•0 comments

America's biggest power grid operator has an AI problem – too many data centers

https://www.msn.com/en-us/money/companies/america-s-biggest-power-grid-operator-has-an-ai-problem...
2•jnord•1h ago•0 comments