frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Tell HN: An inside view of Montana's new biotech law

1•niklas_anzinger•1m ago•0 comments

Coldwire – Offline Caching for Rails, Hotwire, and Hotwire Native

https://github.com/noreastergroup/coldwire-rails
2•hubert_magni•5m ago•0 comments

Claude Code files HR complaints about you while you work

https://github.com/lasagnapizza/claude-hr
1•kinduff•5m ago•0 comments

Rypipe – Format- and source-agnostic ingestion framework

https://github.com/emiliano-go/rypipe
1•emi_gandini•6m ago•0 comments

Anyhropic Launches Google Docs Alternative: Claude Docs

https://www.theverge.com/ai-artificial-intelligence/996234/anthropic-one-claude-cowork-docs-slides
1•lewisjoe•6m ago•0 comments

Show HN: Blast Arena – Quake 3-style deathmatch in the browser (WebRTC P2P)

https://kosmi.io/blast-arena/
1•hauxir•9m ago•0 comments

Will Taiwan Just Give Up?

https://www.theatlantic.com/magazine/2026/10/trump-taiwan-sovereignty-china/688356/
1•JumpCrisscross•9m ago•1 comments

Show HN: Deiko – point at your screen, talk, and hand the brief to your agent

https://deiko.app/
1•maddy30445r•10m ago•0 comments

MSI Titan 18 HX Dragon Edition Norse Myth AI: Can It Run AI Workloads Locally?

https://techstackups.com/articles/msi-titan-18-hx-dragon-edition-norse-myth-ai-review/
1•sixhobbits•10m ago•0 comments

AirPods 5 with Wireless Charging Case Works with MagSafe, but Not Magnetically

https://daringfireball.net/linked/2026/09/16/airpods-5-magsafe
1•aleshh•12m ago•1 comments

Meat Yield Calculators

https://meatprocessingplant.com/tools/meat-yield-calculator
1•g_langenderfer•12m ago•1 comments

We've created the first vectorized Quicksort

https://opensource.googleblog.com/2022/06/Vectorized%20and%20performance%20portable%20Quicksort.html
3•mococa•13m ago•0 comments

9-year-old Minecraft YouTuber ran up a $118,000 ad bill using dad's company card

https://www.videogameschronicle.com/news/im-definitely-cooked-a-9-year-old-minecraft-youtuber-ran...
2•speckx•15m ago•1 comments

Ask HN: What is the best local model that runs on your Mac at decent speed?

1•carloslfu•20m ago•0 comments

UK mathematician debunks myth around Parthenon's optical illusions

https://www.theguardian.com/science/2026/sep/16/uk-mathematician-debunks-myth-parthenon-optical-i...
2•pseudolus•20m ago•0 comments

A masterfully architected application for solving ANYTHING

https://the-analog-method--sophiasbookofl2.replit.app/
1•Harperissharper•20m ago•0 comments

Artificial Analysis: What Is the Intelligence Index Measuring?

https://itsmonkey.business/blogposts/01-On_Artificial_Analysis.html
1•baddash•21m ago•0 comments

GoBench: Evaluating LLMs on 9×9 Go using KataGo opponents as Elo anchors

https://rolandgao.com/blog/gobench/
1•GodelNumbering•21m ago•1 comments

Pull the best espresso shot with derivative-free optimization

https://humpday.microprediction.org/applications/espresso.html
1•timkpaine•23m ago•0 comments

An agent fleet needs a new kind of OS, not a bigger harness

https://pentad.ai/blog/fleet-needs-an-os/
3•kgcgfva•23m ago•1 comments

Iran improved targeting of US assets. How Russian satellites likely have helped

https://www.cnn.com/2026/09/16/world/video/russia-spy-satellites-iran-intelligence-strikes-us-ass...
2•giuliomagnifico•29m ago•0 comments

Fed approves interest rate hike, signals one more to come this year

https://www.cnbc.com/2026/09/16/fed-rate-decision-september-2026.html
9•rawgabbit•30m ago•0 comments

Is GitHub a social network that endangers children? Australia wants to know

https://www.theregister.com/offbeat/2025/09/25/australia-asks-github-if-its-a-dangerous-social-ne...
2•docflabby•31m ago•0 comments

Jotter – A local recording and transcription tool written in Rust

https://github.com/nfishel48/Jotter
1•movingmovie•33m ago•1 comments

NASA spacecraft discovers a new crater on the moon

https://apnews.com/article/moon-lunar-crater-space-nasa-80eea242ad275fda1f7a88587cdccd2f
1•dwringer•33m ago•0 comments

Feds Want California to Give Up 14 Years of Broadband Protections. It Should Sue

https://cyberlaw.stanford.edu/blog/2026/09/california-is-being-asked-to-give-up-14-years-of-broad...
1•rsingel•35m ago•0 comments

Who is vertigoruntime and how do they have 3 posts on the front page rn?

https://news.ycombinator.com/user?id=vertigoruntime
1•johnnyApplePRNG•35m ago•1 comments

GDScript: The Good, Bad, and Ugly Parts

https://azhdarchid.com/gdscript-good-bad-ugly/
3•birdculture•37m ago•0 comments

Fed Raises Rates as Warsh Bucks Trump to Contain Inflation

https://www.bloomberg.com/news/articles/2026-09-16/fed-raises-rates-as-warsh-bucks-trump-to-conta...
13•toomuchtodo•39m ago•6 comments

Show HN: Real-Time Chess Assistant (C++ DirectX, OpenCV, ImGui and Stockfish)

https://github.com/rccmb/oracle
2•baptistarodrigo•39m ago•1 comments
Open in hackernews

Ask HN: How can I load test PostgreSQL but avoid changing actual data?

1•LawZiL•1y ago
I'm running a load test on my Node.js application and want to simulate realistic write-heavy scenarios to stress test the system — especially the PostgreSQL database.

There's a part of the code that performs UPDATE queries, but during load testing, I don't want these updates to actually change the state of the database. However, I still want the database to experience the full impact of the update — query planning, locking, I/O, WAL writes, etc. — so I can measure how it affects performance under peak load.

Is there a best-practice approach to achieve this?

So far, the most viable option I’ve found is to wrap the UPDATE queries in a transaction and then roll it back — that way, the queries still execute, but the state doesn’t change. Is this the right way to go? Does rollback introduce any performance overhead that would skew my results? Are there better or more realistic alternatives that simulate the full write path without persisting changes?

Thanks in advance!

Comments

sargstuff•1y ago
pgbench[2] / pgreplay-go[0] / python locust[1]

very old school approach:

Misuse sql VIEW[3][4] to generate a temporary parallel table setup. Testing database separate from production database would be 'better', IMHO.

-----

[0] pgreplay-go : https://github.com/gocardless/pgreplay-go

[1] python locust : https://miguel-codes.medium.com/unconventional-load-testing-...

[2] pgbench load testing :

   a) https://medium.com/@c.ucanefe/pgbench-load-test-166bdfb5c75a

   b) https://neon.tech/blog/autoscaling-in-action-postgres-load-testing-with-pgbench

   c) https://hackernoon.com/how-to-create-and-load-test-data-in-postgresql-i41e353m
----------------------------

[3] : a) https://hashrocket.com/blog/posts/materialized-view-strategi...

      b) https://tech.jonathangardner.net/wiki/PostgreSQL/Materialized_Views

      c) https://stackoverflow.com/questions/77603705/what-is-the-use-of-materialized-view-in-postgresql
[4] : https://en.wikipedia.org/wiki/View_(SQL)
LawZiL•1y ago
but again, how can i perform the query, but not actually change the state, i really need the state to keep untouched, but be able to perform the query itself.
MatthiasPortzel•1y ago
> Does rollback introduce any performance overhead that would skew my results?

I would expect it to be the other way around—since the transactions are rolled back and not committed, they would have significantly less performance impact. But I’m working from an academic model of the database.

apothegm•1y ago
Load test against a clone instead of a DB whose contents you care about?