Amdahl, Little and Roofline
Three bounds that answer different questions: how far parallel speedup can go, how much concurrency a latency needs, and whether compute or bandwidth is the ceiling.
Three bounds that answer different questions: how far parallel speedup can go, how much concurrency a latency needs, and whether compute or bandwidth is the ceiling.
RTT, bandwidth, BDP, jitter, loss and tail latency: the arithmetic that explains why a fast link still feels slow.
Three kinds of evidence for a performance claim: standard workloads, cycle-level models, and the on-chip counters that explain where the time went.
C++ 用值语义、RAII、模板与零成本抽象同时换取控制力与性能,代价是未定义行为、ABI 碎片化与较高的工程门槛。
Futures as compiler-built state machines, the executor that polls them, and the Send and Sync markers that keep shared state honest.
C++ 标准库以十三个组件家族提供容器、算法与系统设施,其头文件形态、分配策略和 libstdc++/libc++/MSVC STL 的 ABI 差异决定了二进制能否互换。
C++ 的移动语义:值类别、移动构造/赋值、转发引用、完美转发、RVO/NRVO 与 std::move 的误用。
C++ 模板:函数/类模板、全特化与偏特化、变参模板、SFINAE、concepts 与编译期/代码体积成本。
C++ 的函数:重载决议、默认参数、lambda 捕获、constexpr/consteval、名字查找与 ADL。
The three-factor performance equation, how CPI decomposes into stalls, and which metric answers which question.
k6 and JMeter: load models, thresholds and the difference between a benchmark and a capacity test.
Go 运行时如何把 goroutine 调度到线程、如何分配内存、如何并发标记回收:GMP、work stealing、mcache/mcentral/mheap、三色标记、写屏障、pacer 与 GOGC/GOMEMLIMIT 的取舍。
C 进程的地址空间由代码、数据、堆、栈与 TLS 组成,本页给出各段的边界、malloc 的实现与阈值、碎片和泄漏的判据以及分配器选型。
C++ 运行期内存:operator new/delete 的完整重载族、sized 与 aligned 分配、allocator 与 placement new、存储期与生命周期、std::launder 与 sanitizer 信号。
从 go test 的包选择、表驱动与 t.Run 子测试,到 -race 的开销、-benchmem 与 benchstat 的对比方法、fuzz 与覆盖率门禁,并说明 CPU、heap、block、mutex profile 与 trace 各自回答什么问题。遇到缓存假绿、flaky 与覆盖率停滞时能按信号定位。