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

Topic

python

58 posts

Loading posts…

ShopperCove

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

All writingBlogCategoriesTopicsAboutPrivacyRSS

© 2026 ShopperCove

functools.partial vs lambda: Call Lab

1 Oct 20264 min read
→

statistics vs Manual mean: Stdlib Lab

Hands-on statistics vs manual mean/median/stdev lab: real ops/s for fmean, sum/len, and sorted mid versus the stdlib, measured on Linux localhost (lab).

1 Oct 20264 min read
→

bisect vs Linear vs set: Lookup Lab

Hands-on bisect.insort vs linear vs set lab: real ops/s for mixed sorted-list insert and membership lookup workloads, measured on Linux localhost (lab).

1 Oct 20264 min read
→

itertools.chain vs Flatten Lab

1 Oct 20264 min read
→

nlargest vs sorted[:k]: Top-k Lab

1 Oct 20264 min read
→

attrgetter vs getattr: Hot Loop Lab

Hands-on operator.attrgetter vs builtin getattr lab: real ops/s for extract and sort by attribute versus direct access, measured on Linux localhost only.

1 Oct 20264 min read
→

Counter vs dict: Tally Lab

Hands-on collections.Counter vs dict tally lab: real ops/s for Counter.update, dict get-add, and defaultdict(int) token counting on Linux localhost (lab).

1 Oct 20264 min read
→

bytes vs bytearray: Mutate/Copy Lab

Hands-on bytes vs bytearray lab: real ops/s for append/extend/slice/copy and when copy dominates over mutate, benchmarked on Linux localhost for SREs.

1 Oct 20264 min read
→

contextlib vs try/finally: Cleanup Lab

1 Oct 20264 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
→
Previous
  1. 1
  2. …
  3. 4
  4. 5
Next