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

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
→

contextlib vs try/finally: Cleanup Lab

1 Oct 20264 min read
→

itemgetter vs lambda: Sort Key Lab

Hands-on operator.itemgetter vs lambda sort-key lab: real ops/s for extract and list.sort on tuples, dicts, and objects, measured on Linux localhost (lab).

1 Oct 20264 min read
→

ThreadPoolExecutor vs Sequential: I/O Lab

Hands-on ThreadPoolExecutor vs sequential lab: real wall-time speedup for I/O sleep workloads plus GIL CPU contrast, measured on Linux localhost (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
→
Previous
  1. 1
  2. …
  3. 34
  4. 35
  5. 36
  6. …
  7. 41
Next