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

json.dumps Compact vs Indent Lab

Hands-on json.dumps separators vs indent lab: real time and byte-size tradeoffs for compact vs pretty JSON encoding, measured on Linux localhost (lab).

1 Oct 20264 min read
→

shutil.copyfile vs Manual Copy Lab

Hands-on shutil.copyfile vs manual file copy lab: real MB/s versus open/read/write and Path.read_bytes on local disk, measured on Linux localhost (lab).

1 Oct 20264 min read
→

str.translate vs replace: Scrub Lab

Hands-on str.translate vs replace vs re.sub lab: real ops/s for character delete and map scrubbing on mid-size strings, measured on Linux localhost (lab).

1 Oct 20264 min read
→

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
→

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
→

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
→

itertools vs Python loops Lab

Hands-on itertools vs pure Python loops lab: chain, islice, and accumulate vs equivalent for-loops with real ops/s, measured on Linux localhost (lab).

1 Oct 20264 min read
→

deque vs list in Python: Which Is Faster for a Queue?

Hands-on collections.deque vs list queue lab: real FIFO ops/s for append/popleft vs list.pop(0) at several prefill sizes on Linux localhost (eng lab).

1 Oct 20264 min read
→

struct.pack vs to_bytes vs memoryview Lab

Benchmarking fixed-record packing with struct.pack, Struct.pack_into, int.to_bytes, and memoryview on Linux localhost.

1 Oct 20263 min read
→

lru_cache hit vs miss: Cache Cost Lab

Real Linux localhost timings for functools.lru_cache hits, miss-and-insert calls, maxsize choices, and an uncached baseline.

1 Oct 20264 min read
→
Previous
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
Next