yaooqinn commented on issue #26622: [WIP][SPARK-28023][Test] Cheap UTF8String Trim URL: https://github.com/apache/spark/pull/26622#issuecomment-556986541 #### normal trim v.s . no trim ``` [info] Java HotSpot(TM) 64-Bit Server VM 1.8.0_231-b11 on Mac OS X 10.15.1 [info] Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz [info] Cast String to Integral: Best Time(ms) Avg Time(ms) Stdev(ms) Rate(M/s) Per Row(ns) Relative [info] ------------------------------------------------------------------------------------------------------------------------ [info] cast(trim(str) as int) as c_int 4174 6090 1434 2.0 509.6 1.0X [info] cast(trim(str) as long) as c_long 5940 6829 1113 1.4 725.1 0.7X [info] cast(str as int) as c_int 2932 4191 1242 2.8 357.9 1.4X [info] cast(str as long) as c_long 3202 4767 NaN 2.6 390.8 1.3X [info] ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
