frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

We don't need an agent orchestrator. iTerm2 is enough

https://github.com/mkagenius/terminal-skinner
1•mkagenius•3m ago•0 comments

Building Laminar

https://builders.ramp.com/post/building-laminar
1•theahura•4m ago•0 comments

To get a great exit, don't build for an exit

https://longform.asmartbear.com/exit-strategy/
1•apparent•8m ago•0 comments

Show HN: Catch Gist – Hear a 45s gist of any PDF or webpage, ask follow-ups

https://catchgist.com/
1•Jessicazhouzhou•10m ago•0 comments

I'm looking for a group to discuss CS and share growth and fun

1•squareCreator•14m ago•0 comments

Ask HN: Which is the best harness for Qwen4 models?

1•reddmachine•18m ago•0 comments

Pizzlies: The featherweight dataframe library in pure Python

https://labs.quansight.org/blog/introducing-pizzlies
1•callen43•20m ago•0 comments

Bio-Drones? Russian Startup Wants to Control Pigeons with Neural Interfaces

https://www.pcmag.com/news/bio-drones-russian-startup-wants-to-control-pigeons-with-neural-interf...
1•xyzal•22m ago•0 comments

Upto 5x verified outcomes vs. plain Claude Code – SWE Benchmark Verified

https://ekamyth.ai/docs/get-started
1•anupampandey16•23m ago•0 comments

Pleione: An all-in-one AI playground

https://getpleione.com/en
1•octemberr•28m ago•1 comments

• Matching GPT-4's 100k tokenizer compression with a 32k vocabulary

https://github.com/Dev-qvinfor/BloatTokenizer32K
9•Dor_frem•29m ago•0 comments

Vino developer stands up against Synaptics legal threats

https://lore.kernel.org/all/CAHbf0-HH+r47O_FY2-5+pGn4y+SCM=B0xnqEUEK4-+YZ4eMb8Q@mail.gmail.com/
1•ta988•31m ago•0 comments

Binaries: one code-model to rule them all

https://fzakaria.com/2026/12/05/huge-binaries-one-code-model-to-rule-them-all
1•ingve•46m ago•0 comments

Embedded Rust from Scratch

https://rodrigodd.github.io/2026/12/05/rust-embedded-from-scratch.html
2•dimonomid•48m ago•0 comments

Minisign 2 Is Here

https://00f.net/2026/12/04/minisign2/
4•chmaynard•48m ago•0 comments

Ask HN: Where can I run a Racket program that generates 1T random characters?

2•nyc111•52m ago•2 comments

Skypilot for Data

https://www.uselimestone.ai
2•limestoneai•53m ago•0 comments

CIA Chief Broadly Confirms Alice Huang's Ties to Chinese Intelligence

https://www.nytimes.com/2026/12/05/us/politics/ratcliffe-cia-alice-huang-chinese-intelligence.html
10•kartik147•55m ago•1 comments

Show HN: AirMind – Zig and Metal Qwen4-35B engine and local agent for 16GB Macs

https://github.com/fxsjy/AirMind
2•fxsjy•56m ago•0 comments

America May Need Years to Regain Measles Elimination, Says CDC Director

https://www.msn.com/en-us/news/other/cdc-director-says-us-may-need-years-to-regain-measles-elimin...
3•extasetoi12•59m ago•1 comments

Europe ain't gonna make it

https://scottlocklin.substack.com/p/europe-aint-gonna-make-it
3•MrBuddyCasino•59m ago•4 comments

Orbeon Statement on Post-Quantum Cryptography

https://www.orbeon.com/2026/12/post-quantum-cryptography-in-orbeon-forms
1•avernet•1h ago•0 comments

Memory management in 40 major C projects, a survey

https://theconsensus.dev/p/2026/11/08/c-memory-management-survey.html
1•ingve•1h ago•0 comments

We Gambled Away $10K on DraftKings on Purpose

https://www.propublica.org/podcast/sports-gambling-problem-draftkings-experiment
2•theanonymousone•1h ago•1 comments

Godot Bench: Best Free AI Models for Godot

https://ziva.sh/docs/best-free-ai-models-for-godot
1•OsrsNeedsf2P•1h ago•1 comments

Human Agency

https://scholars-stage.org/thoughts-on-human-agency/
5•Khaine•1h ago•2 comments

The Defender's Widowmaker

https://mercuriusdream.com/defenders-widowmaker/
2•Mercuriusdream•1h ago•2 comments

WordPress Plugin WP Rocket CVE-2026-125812: Exploits in the Wild, Dissected

https://noc.org/articles/wp-rocket-vulnerability-exploit-cve-2026-125812
3•sucuri2•1h ago•0 comments

Trump Initially Demanded 50% of Nvidia's China Chip Sales, CEO Says

https://www.newsweek.com/trump-initially-demanded-50-of-nvidias-china-chip-sales-ceo-says-12796720
5•girish_r•1h ago•0 comments

Best Buy accused of taking 4TB Samsung SSD during laptop warranty repair

https://www.tomshardware.com/pc-components/ssds/best-buy-accused-of-taking-4tb-samsung-ssd-during...
2•girish_r•1h 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?