I am currently taking a course "Evaluating Performance" at the university, and now we are completing a task in which we test CPU usage on a PHP and MySQL server. We use httperf to create custom traffic and vmstat to track server load. We run 3,000 connections to the PHP server for both INSERT and DELETE (run separately).
Numbers show that DELETE is much more processor intensive than INSERT - and I'm just wondering why?
Initially, I thought that INSERT requires more CPU usage, since indexes will need to be recreated, data must be written to disk, etc. But obviously I'm wrong, and I wonder if anyone can tell me the technical reason for this.
mysql sql-delete sql-insert cpu-usage
Trond Feb 17 '11 at 20:00 2011-02-17 20:00
source share