frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

A tabbed desktop workspace for Claude Code

https://github.com/inkshell/inkshell/
1•rodorgas•1m ago•0 comments

Wiki for Pet Projects with Clojure and Polylith

https://snyssfx.com/blog/wiki_for_pet_projects.html
1•snyssfx•3m ago•0 comments

Are Microsoft's AI plans being held back by a shortage of chips?

https://www.theguardian.com/technology/2026/aug/17/are-microsofts-ai-plans-being-held-back-by-a-s...
3•billybuckwheat•3m ago•0 comments

The Real Animals of the World

https://decodingvibes.com/blog/the-real-animals-of-the-world/
1•altmanaltman•4m ago•0 comments

AutoDesign: Meta-Harness Optimization for Long-Horizon Agentic Design

https://arxiv.org/abs/2608.13560
1•matt_d•4m ago•0 comments

Trump sends the US Navy back to the steam age

https://www.theregister.com/offbeat/2026/08/14/trump-sends-the-us-navy-back-to-the-steam-age/5287936
3•joebuckwilliams•4m ago•1 comments

Stract Search Engine: Deactivated in Early June

https://rbfirehose.com/2026/08/17/stract-search-engine-deactivated-in-early-june/
1•rdmuser•5m ago•0 comments

The People Building a Way to Slow Down the AI Race

https://time.com/article/2026/08/16/ai-race-slowdown-data-center-verification/
1•reasonableklout•5m ago•0 comments

How I Under-Engineered My Book

https://chriskiehl.com/article/how-i-under-engineered-my-book
1•goostavos•5m ago•0 comments

DeepSeek V4 J-Space Capability Realization-Report

https://github.com/Tiger3807861189/DeepSeek-V4-J-Space-Capability-Realization-Report
1•Herrera•6m ago•0 comments

Eigendrum: A Study of the Vibrating Plane

https://eigendrum.com/
1•mooreds•7m ago•0 comments

Version Control for Everything

https://tyoverby.com/posts/version-control-for-everything-else/
1•evakhoury•8m ago•0 comments

The World Builds with Bazel

https://webazel.dev/
1•sluongng•9m ago•0 comments

Instruction Scheduling in LLVM

https://harishch4.github.io/categories/instruction-scheduling/
1•matt_d•10m ago•0 comments

Why Human Giants Defy the Laws of Physics

https://thereader.mitpress.mit.edu/why-human-giants-defy-the-laws-of-physics/
1•Petiver•11m ago•0 comments

A Barrier-Free Synchronization Algorithm for Multi-Engine AI Accelerators

https://arxiv.org/abs/2608.13757
1•matt_d•11m ago•0 comments

Private Credit Salt Fight Shows 'Anything but Software' Push

https://www.bloomberg.com/news/articles/2026-08-13/private-credit-s-salt-fight-shows-anything-but...
1•petethomas•11m ago•0 comments

India built the biggest digital payments miracle: Now comes the bill

https://www.bbc.com/news/articles/c8xnwqe00v1o
2•monkey_monkey•12m ago•0 comments

Starmind

https://www.space.com/space-exploration/launches-spacecraft/another-star-is-born-spacex-names-ai-...
1•simonebrunozzi•15m ago•0 comments

The AI Reset

https://medium.com/@alanscottencinas/ai-as-a-crutch-what-the-watermark-era-is-about-to-expose-3bd...
1•encinas88•15m ago•0 comments

Nuking an Asteroid on Short Notice Could Save Us

https://www.universetoday.com/articles/nuking-an-asteroid-on-short-notice-could-save-us
2•speckx•15m ago•0 comments

AI is transforming politics–-and how we understand it

https://freesystems.substack.com/p/ai-is-transforming-politics-and-how
1•speckx•16m ago•0 comments

Show HN: Love

https://01001100011011110111011001100101.ai/
1•arionhardison•16m ago•1 comments

Nanomaterial cools surfaces by up to 12.9C without electricity

https://www.euronews.com/next/2026/08/17/new-spanish-nanomaterial-cools-surfaces-by-up-to-129c-wi...
7•lejeanvaljean•17m ago•1 comments

We benchmarked Prometheus, Mimir, and OpenObserve on 1.09M metrics series

https://openobserve.ai/blog/openobserve-vs-prometheus-mimir-metrics-benchmark/
1•prabhatsharma•17m ago•0 comments

Learn Go with Tests: Revisiting time, with testing/synctest

https://quii.gitbook.io/learn-go-with-tests/build-an-application/revisiting-time-with-synctest
1•quii•17m ago•0 comments

Bopeep

https://bopeep.bysam.fun/
1•isabellebusines•19m ago•0 comments

Great Developers Aren't Destined to Be Great Managers (2021) [audio]

https://maintainable.fm/episodes/johanna-rothman-no-great-developers-arent-destined-to-be-great-m...
2•mooreds•19m ago•0 comments

Which is the fastest HTTP server in 2026?

https://www.http-arena.com/
1•nsimone•19m ago•0 comments

Train-infer mismatch for Open-weight MoE RL in Open-source code

https://kiddyboots216.github.io/mismatch/
1•kiddyboots216•21m ago•0 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?