ShopperCove
Menu
All writingBlogTopicsCategoriesAboutRSS
Blog
Categories
Observability & SRE62All categories
Topics
sre111localhost lab102performance70python58javascript47bundle size36benchmarking35node.js35web development21typescript19benchmark16content creation15All topics
About

Topic

sre

111 posts

Loading posts…

ShopperCove

Hands-on notes on developer tools, written after the tool has actually been run.

All writingBlogCategoriesTopicsAboutPrivacyRSS

© 2026 ShopperCove

set vs frozenset vs list: Membership Lookup Lab

A hands-on localhost lab measuring set, frozenset, list, and dict-key membership across N, with the real crossover point.

1 Oct 20265 min read
→

pathlib vs os.path in Python: Is pathlib Slower? Tested

A hands-on Linux localhost benchmark of pathlib and os.path for joins, filesystem checks, stats, and recursive scans.

1 Oct 20266 min read
→

sorted vs heapq vs bisect: Which Is Fastest?

A hands-on Linux localhost benchmark comparing batch sorting, bisect.insort, and heapq as ordered data arrives.

1 Oct 20265 min read
→

TemporaryFile vs NamedTemporaryFile Delete Modes Lab

Hands-on tempfile modes lab: TemporaryFile vs NamedTemporaryFile delete True/False vs mkstemp unlink patterns with real measured ops/s on localhost box.

1 Oct 20266 min read
→

dataclass vs slots vs dict: Python Object Lab

Hands-on Python dataclass vs slots vs dict lab: instantiation and attribute ops/s plus RSS for classic, slots, dataclass, namedtuple, dict on localhost.

1 Oct 20266 min read
→

getaddrinfo DNS Resolve Cost Localhost Lab

Hands-on getaddrinfo cost lab: localhost vs numeric IP vs AI_NUMERICHOST, plus hosts/stub names with real p50/p95 µs. DNS sinkhole labeled honestly here.

1 Oct 20266 min read
→

Atomic Rename vs Overwrite: Is os.replace Worth the Cost?

Hands-on atomic rename vs overwrite lab: tempfile+os.replace vs truncate-write with/without fsync. Real ops/s on localhost; crash-safety limits labeled.

1 Oct 20267 min read
→

uuid4 vs secrets Token Generation Rate Lab

Hands-on uuid.uuid4 vs secrets.token_hex/urlsafe vs os.urandom ops/s on localhost. Throughput only; uniqueness and collisions not measured in this lab.

1 Oct 20266 min read
→

base64 vs hex Encode/Decode Throughput Lab

Hands-on base64 vs hex encode/decode lab on 32MiB buffers with real MB/s measurements in both directions on localhost.

1 Oct 20266 min read
→

Python re vs str Methods: Text Scan Throughput Lab

Hands-on Python re vs str methods lab on a 32MiB localhost corpus: count, find, line prefix, case-insensitive, and email scans with real measured MB/s.

1 Oct 20266 min read
→

posix_fadvise SEQUENTIAL vs RANDOM: Read Hint Lab

Hands-on posix_fadvise SEQUENTIAL vs RANDOM vs NORMAL lab on localhost: cold and warm 256MiB reads after drop_caches with real measured p50 MB/s and RPS.

1 Oct 20266 min read
→

fork COW RSS vs spawn: Python Multiprocessing Lab

Hands-on fork COW vs multiprocessing spawn lab: PSS/Private_Dirty after fork and page dirtying, plus spawn start latency. Real numbers on the lab box.

1 Oct 20266 min read
→
Previous
  1. 1
  2. …
  3. 6
  4. 7
  5. 8
  6. …
  7. 10
Next