Java socket performance bottleneck: where?

后端 未结 4 1726
面向向阳花
面向向阳花 2020-12-15 12:04

I recently started the development of an application making intensive usage of networking. A first attempt was made using RMI and for a couple of reasons, we switched over

4条回答
  •  难免孤独
    2020-12-15 12:46

    I would not trust the results of that benchmark. It does not ensure that the JVM is warmed up; i.e. that classes are loaded, initialized and compiled to native code before measuring execution times. There is a good chance that native code compilation kicks in part way through running the benchmark, and this inflates the time taken by one or more of the loops.

提交回复
热议问题