Re:PHP Performance Benchmarks
by mfjordvald on Wednesday October 17, 2012 @10:07PM
(#4667180)
Definitely microseconds, most of my scripts with database interaction and all fully complete in around 50 milliseconds which would be impossible if string comparison took 2 milliseconds.
When you do a benchmark you usually run the code more than once. It's milliseconds. The real question is how many time the code loop.
But anyway the interesting number is how many times it's slower compared to an equivalent code.
2 milliseconds to compare two strings seems awfully slow.