Performance profiling MySQL MariaDB

Profiling and performance measurement tools and methods

1)

time (for i in {1..1000}; do mysql -h hostname_for_mysql -u username --password='password_password' database_name -e "select 1 from dual;" 2>&1; done)>/dev/null 

real	0m8.646s
user	0m3.628s
sys	0m4.508s

2)

TBD