Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add word count benchmark result with object reuse

...

By running this benchmark without object reuse, the following result is generated.

  • Before optimization, throughput is 362.180 ± 6.711 ops/ms.
  • After optimization, throughput is 373.595 ± 7.041 ops/ms.

By running this benchmark with object reuse, the following result is generated.

  • Before optimization, throughput is 344365.393 720 ± 106.615 987 ops/ms.
  • After optimization, throughput is 351375.022 033 ±  86.065 374 ops/ms.

Thus the proposed change increased the job's throughput by about 2% ~3%, regardless of object reuse.

Reference

Below are codes containing the POC code and benchmark code that generated these results.

...