Performance Benchmark of C++ Input Methods for Competitive Programming
We evaluated the performance of various C++ input methods by processing 1,000,000 randomly generated integers (within INT32 range) on an Intel Core i5-12400 system running Windows 11.
Tested Input Methods
Standard scanf
Standard cin
Custom fast read
Bitwise optimized fast read
fread + bitwise optimized read
cin with sync disabled
cin with sync ...
Posted on Wed, 03 Jun 2026 17:50:53 +0000 by smellicus
MySQL Performance Stress Testing Tool: mysqlslap
Overview
The mysqlslap tool is a built-in MySQL benchmark utility that has been available since version 5.1.4. It simulates multiple concurrent clients accessing MySQL to execute stress tests, providing detailed performance reports on SQL execution. The tool is particularly useful for comparing different storage engines (such as MyISAM, InnoDB) ...
Posted on Sun, 17 May 2026 06:30:42 +0000 by ranbla
Choosing and Optimizing Packet Transmission Protocols Based on Performance Benchmarks
Choosing and Optimizing Packet Transmission Protocols Based on Performance Benchmarks
Scenario: In a local network, multiple machines capture packets via their network interfaces and need to synchronize these packets to a single machine.
Original Approach: Use tcpdump -w to write packets into files, then periodically use rsync to transfer them. ...
Posted on Fri, 15 May 2026 17:54:37 +0000 by TPerez