Skip to content

About

Reproducible .NET, Go and PostgreSQL measurements. 1M rows: 10 min 23 s with EF Core SaveChanges in a loop, 5.5 s with binary COPY.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

English | Türkçe

dev-benchmarks: measured, not assumed. Each experiment ships its code, its raw results and one command to run it again.

MIT experiments: 3 .NET 10 Go PostgreSQL 16

Results · 01 bulk insert · 02 API language race · 03 password cracking

dev-benchmarks

Reproducible software benchmarks.

I measure things I'm curious about. Each folder is one experiment: the code, the raw results, and a single command to reproduce it. The numbers were measured on one machine on one day. Yours will differ; if you share your results in an issue, I'd love to compare.

Experiment Question Short answer
01-bulk-insert How long do 6 ways of writing 1 million rows to PostgreSQL take? From 10 min 23 s (EF Core, SaveChanges in a loop) down to 5.5 s (binary COPY)
02-api-language-race The same API in C#, Go, Node.js and Python. How many requests per second? Go 29.7k, tuned C# 28.0k, Node.js 13.8k, default C# 9.8k, Python 8.1k (database endpoint)
03-password-cracking How fast do common Turkish password patterns fall to an offline attack? 11 of 13 sample passwords cracked within 45 seconds

Results at a glance

01-bulk-insert: 1 million rows take from 10 min 23 s (EF Core, SaveChanges per row) down to 5.5 s (binary COPY). 02-api-language-race, database endpoint: Go 29,734, C# with auto prepare and multiplexing 27,985, Node.js 13,753, C# default 9,804, Python 8,065 requests per second. 03-password-cracking: 11 of 13 sample passwords cracked, the slowest in 45.2 s.

Each experiment folder has its own README with the full table and method: 01-bulk-insert, 02-api-language-race, 03-password-cracking.

Shared setup (November 19, 2026)

  • 4-core cloud server (Intel Xeon 2.1 GHz), 16 GB RAM, Ubuntu 24.04
  • .NET 10.0 SDK, Go 1.25, Node.js 22, Python 3.13, PostgreSQL 16 (default settings, fsync on)

The quickest way to run PostgreSQL locally:

docker run -d --name pg -e POSTGRES_HOST_AUTH_METHOD=trust -p 5432:5432 postgres:16

A note on the raw results

The code was originally written with Turkish identifiers and translated to English afterwards. The files in each results/ folder come from the original runs; only their field names, method keys and file names were translated to match the current code. The values are unchanged.

License: MIT

About

Reproducible .NET, Go and PostgreSQL measurements. 1M rows: 10 min 23 s with EF Core SaveChanges in a loop, 5.5 s with binary COPY.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages