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

Topic

localhost lab

102 posts

Loading posts…

ShopperCove

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

All writingBlogCategoriesTopicsAboutPrivacyRSS

© 2026 ShopperCove

setdefault vs defaultdict: Insert Lab

Hands-on setdefault vs if-not-in vs defaultdict lab: real ops/s for list-append and counter default insert patterns, measured on Linux localhost (lab).

1 Oct 20264 min read
→

zip vs Index Pairing: Loop Lab

1 Oct 20264 min read
→

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
→

frozenset vs set: Membership Lab

Hands-on frozenset vs set vs list membership lab: real ops/s for build-once lookup-heavy paths and dict keys, benchmarked on Linux localhost for SREs.

1 Oct 20264 min read
→

Enum vs Constants: Access Cost Lab

1 Oct 20264 min read
→
Previous
  1. 1
  2. …
  3. 4
  4. 5
  5. 6
  6. …
  7. 9
Next