2025-07-15 | algorithms | #sorting #benchmark #performance #data-distribution
12 种排序算法在 7 种数据分布、4 种数据规模下的全面对比。用实测数据回答'什么时候该用什么排序'这个永恒的问题。
2026-04-11 | linux · containers · networking | #veth #macvlan #ipvlan #ebpf #cilium #iptables #container-networking #cni #benchmark #xdp
容器网络为什么比裸机慢?veth + bridge 每个包经过两次 netfilter,macvlan 跳过了 bridge,Cilium 用 eBPF 替掉了 iptables。到底慢多少?我们用 iperf3、wrk 和自定义 echo server 实测。
2026-04-12 | database | #database #lsm-tree #rust #leveldb #storage-engine #concurrency #snapshot #iterator #benchmark #memory-safety
组装完整 LSM-Tree 存储引擎:DB 接口(Open/Put/Get/Delete/Iterator/Snapshot)、单写多读并发控制、启动恢复,然后用 Rust 重写核心模块,记录 5 个编译器不让我过的故事,最后三方 benchmark 对比。从零写一个 LSM-Tree 存储引擎系列第 5 篇。
2025-11-30 | linux · io_uring · performance | #linux #io_uring #epoll #benchmark
全方位对比 io_uring 与 epoll:从系统调用开销、内存管理到编程模型,分析 io_uring 在高性能 I/O 场景中的优势与局限。
2025-11-30 | linux · io_uring · epoll · performance | #linux #io_uring #epoll #benchmark #tradeoff
并非所有场景都适合 io_uring。深入分析快路径延迟、内存隐性成本、生态复杂度等因素,帮助你做出理性的技术选型。
2026-04-03 | kubernetes · networking | #CNI #Flannel #Calico #Cilium #benchmark #selection-guide #migration #Weave #Antrea
不是功能矩阵,而是基于真实场景和性能实测的 CNI 选型决策指南
2025-01-28 | io_uring | #io_uring #nginx #static-file-server #zero-copy #sqpoll #fixed-buffers #benchmark
特定场景下精心调优的 io_uring 可以超过通用 nginx。我们用 fixed buffers、registered files、SQPOLL 把每个请求的系统调用从 6 个降到 0 个,然后用 wrk 正面 PK。
2025-01-30 | io_uring | #io_uring #epoll #benchmark #networking #linux-kernel #event-loop
io_uring 一定比 epoll 快?跑五个场景的实测数据告诉你:某些情况下 epoll 还是赢的。用数据打自己的脸。
2026-03-31 | linux | #lock-free #concurrency #memory-ordering #cas #atomic #benchmark #cpp #rust
拆解 GitHub 高星'无锁'库的真实面目:隐藏的 mutex、被滥用的 memory_order_relaxed、以及 CAS 重试循环的阻塞本质。附 x86 vs ARM 上的行为差异实测。
2026-03-22 | linux · performance · high-performance · network-programming | #zero-copy #sendfile #splice #io_uring #cache #benchmark #linux
sendfile/splice/io_uring 的 zero-copy 路径深度解析与实测。揭示小数据包场景下传统 copy 因 cache locality 反而更快的反直觉真相。
2026-03-31 | system-design | #consistent-hashing #jump-consistent-hash #maglev-hash #rendezvous-hash #distributed-systems #benchmark
蒙特卡洛模拟显示:在 5-20 个节点的常见部署规模下,一致性哈希环的负载均衡效果远不如 Jump Consistent Hash、Rendezvous Hash 等替代方案。附完整模拟数据和选型决策框架。
2025-02-03 | system-design | #serialization #protobuf #flatbuffers #capnproto #zero-copy #schema-evolution #benchmark
不只测速度。schema evolution 的兼容性、zero-copy 的真实收益、生成代码的可维护性——这些才是选型时真正要看的东西。
2025-02-17 | ai-systems | #ai #performance #benchmark #simd #optimization #perf #cachegrind
让 AI 写一个 SIMD 排序、一个内存池、一个事件循环。然后用 perf 和 cachegrind 看它的代码到底在干什么。结论:AI 写的是正确的慢代码。
2025-02-01 | linux | #memory-allocator #jemalloc #tcmalloc #mimalloc #glibc #malloc #fragmentation #benchmark
分配器的 micro-benchmark 全是骗人的。真正的差距在碎片率和尾延迟。我们把四个分配器塞进一个真实的 HTTP 服务器,跑 24 小时,看谁先崩。
2025-02-05 | system-design | #go #c #rust #benchmark #systems-programming #comparison #concurrency
不是'谁快'——而是'什么维度上谁更合适'。在延迟、吞吐量、内存占用、编译速度、并发模型五个维度上正面对比,用同一个任务的三种实现说话。
2026-03-30 | database | #database #sqlite #b-tree #wal #page-cache #storage-engine #benchmark #performance #source-code-analysis
拆解 SQLite 的三层性能引擎:B-Tree 页面布局如何把随机 I/O 压到最低、WAL 如何实现读写并发、Page Cache 如何替代操作系统的盲目预读。附 SQLite vs MySQL vs PostgreSQL 嵌入式场景对比分析。
2026-03-15 | database | #database #lsm-tree #leveldb #rocksdb #storage-engine #rust #compaction #wal #sstable #bloom-filter #skip-list #benchmark
五篇长文,从 LSM-Tree 的设计哲学讲到完整 KV 引擎实现,最后用 Rust 重写并三方 benchmark 对比。每篇含完整 C 代码、架构图、数学推导。