Use mysql_query instead of $wpdb query

Simple and short:

  • mysql_query() = Faster!
  • $wpdb->get_results() = Safer!

But in most cases since $wpdb is a global object and already in the memory using it will be be as fast as mysql_query().

Will this affect my performance?

It can affect for better performance changes but they would be minor changes that its just not worth it.