Hi all,
I discover a slow performance drift on the last versions of JNA.
I made 2 tests that run 2 native fonctions. The prototypes of the native fonctions are:
- for test 1: int foo(int, int, int, int[])
- for test 2 : int foo(int, struct*)
(Note: the 2 test functions are "real" native functions that do some real work, so the test durations do not only reflect the duration of the native calls but also the actual work of these functions).
For each test, I measure the duration of a loop of 100000 function calls with different versions of JNA (each time using Direct Mapping).
- For test 1: 4650ms with JNA 3.2.7, 5039ms with JNA 3.4, 5439ms with JNA 3.5.1
- For test 2: 4450ms with JNA 3.2.7, 5172ms with JNA 3.4, 5437ms with JNA 3.5.1
Are you aware of this performance drift?
Regards,
Thomas
Hi all,
I discover a slow performance drift on the last versions of JNA.
I made 2 tests that run 2 native fonctions. The prototypes of the native fonctions are:
(Note: the 2 test functions are "real" native functions that do some real work, so the test durations do not only reflect the duration of the native calls but also the actual work of these functions).
For each test, I measure the duration of a loop of 100000 function calls with different versions of JNA (each time using Direct Mapping).
Are you aware of this performance drift?
Regards,
Thomas