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

ShopperCove

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

All writingBlogCategoriesTopicsAboutPrivacyRSS

© 2026 ShopperCove

Archive

Blog

AllHands-onLabSummaryPaper digestNews

Enum vs Constants: Access Cost Lab

1 Oct 20264 min read
→

contextlib vs try/finally: Cleanup Lab

1 Oct 20264 min read
→

perf_counter vs time.time: Which Python Timer to Use?

A hands-on Linux localhost lab measuring Python clock-call overhead, observed resolution, and safe choices for elapsed-time measurements.

1 Oct 20265 min read
→

array.array vs list[int] vs bytes Lab

A hands-on Linux localhost lab comparing memory density and numeric throughput for list[int], array.array('i'), bytearray, and memoryview.

1 Oct 20264 min read
→

logging vs print: Throughput Lab

Hands-on logging vs print throughput lab: real lines/s for StreamHandler, StringIO, and a disabled logger, measured on Linux localhost only (eng lab).

1 Oct 20264 min read
→

copy vs deepcopy vs manual: Shallow Copy Lab

Hands-on copy.copy vs deepcopy vs manual shallow lab: real ops/s on nested dicts and lists of several sizes, measured on Linux localhost only (eng lab).

1 Oct 20264 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
→

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
→
Previous
  1. 1
  2. …
  3. 22
  4. 23
  5. 24
  6. …
  7. 26
Next