Let's create 2 processes: one with 2 plain Java measurement activities using System.nanoTime() (Run1) and one with mapper between them (Run1). When we substract nano times we measure time between: output from Java activity, transition, input to Java activity - which would be the same as combined Java execution. Now, time Run2 - Run1 is overhead of Java reflection over simple mapper activity. Let's measure with many repetitions. On Intel Core i7-6820HQ 2.7GHz overhead is below 0.2ms.
wtorek, października 17, 2017
Subskrybuj:
Komentarze do posta (Atom)
0 komentarze:
Prześlij komentarz