BENCHMARK
Execute an expression repeatedly. This function runs a scalar expression a specified number of times, primarily for measuring query execution speed.
Syntax
BENCHMARK(count,expr)Description
Examples
SELECT BENCHMARK(1000000,ENCODE('hello','goodbye'));
+----------------------------------------------+
| BENCHMARK(1000000,ENCODE('hello','goodbye')) |
+----------------------------------------------+
| 0 |
+----------------------------------------------+
1 row in set (0.21 sec)Last updated
Was this helpful?

