From: Daniel F. <dou...@gm...> - 2012-04-15 05:06:56
|
In messing around with creating Clojure bindings for the EFL, I decided to do some performance benchmarks on the low hanging fruit. Since we're going through a binding layer (the JNA), I wanted something from the clojure-world which would help balance the scales a bit more. Since Clojure's split operation handles regex, making the code more complex, I felt that would help. I suspected these to be about even, but they were not what I'd suspected. ; eina_init called somewhere up here.... user=> (ave 1000 (vec (eina/eina_str_split "Calvin;Leoben;D'anna;Simon;Dora2;105Rl;Six;Daniel;Sharon" ";" 0))) 0.08763943600000001 user=> (ave 1000 (split "Calvin;Leoben;D'anna;Simon;Dora2;105Rl;Six;Daniel;Sharon" #";")) 0.008177458999999986 This tells it to perform the split operation 1000 times and then give the average number of milliseconds elapsed for each execution. Any ideas why eina is so much slower? |