Is stopwatch benchmarking acceptable?

后端 未结 13 2258
夕颜
夕颜 2020-11-28 03:07

Does anyone ever use stopwatch benchmarking, or should a performance tool always be used? Are there any good free tools available for Java? What tools do you use?

13条回答
  •  情书的邮戳
    2020-11-28 03:29

    A profiler gives you more detailed information, which can help to diagnose and fix performance problems.

    In terms of actual measurement, stopwatch time is what users notice so if you want to validate that things are within acceptable limits, stopwatch time is fine.

    When you want to actually fix problems, however, a profiler can be really helpful.

提交回复
热议问题