See the Spark software optimization guide and the Performance Results section in the Gluten software optimization guide.