Best of Computing — June 2024
- 1
- 2
DEV·2y
Comparing SQL engines by CPU instructions for DML
This post compares the CPU usage of different SQL engines, such as PostgreSQL, Oracle, SQL Server, MySQL, TiDB, YugabyteDB, and CockroachDB, for simple DML operations. The results show that despite their different implementations, PostgreSQL, Oracle, and SQL Server perform well in terms of CPU usage. TiDB, YugabyteDB, and CockroachDB exhibit higher CPU utilization due to their distributed and scalable architectures. Overall, the performance varies depending on the database engine and workload.
- 3
Hacker News·2y
Pikuma: Exploring How Cache Memory Really Works
Understanding CPU cache is essential for optimizing programming performance. Cache memory, located within the CPU, is significantly faster than RAM and helps bridge the speed gap between the CPU and main memory. There are different levels of cache (L1, L2, L3), each with varying speeds and sizes. Cache efficiency can be enhanced by techniques such as maintaining data locality, avoiding complex loops, aligning structures, and using appropriate compiler flags. Cache hits and misses play a crucial role in performance, and different cache placement policies can affect how data is retrieved and stored.
