@joachim.reiss. Computers are much faster than mobile devices.
Also probably you should check GC (if your library do a lot of allocation it could significantly decrease performance) and do overall performance profiling.
Anyway dalvik/art much slower then HotSpot, just because architecture (trade-off speed/memory)