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?
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to