jmeter-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 62426] Here are some Reduced ReportGenerator performance Code
Date Tue, 19 Jun 2018 19:01:32 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=62426

--- Comment #7 from Felix Schumacher <felix.schumacher@internetallee.de> ---
Created attachment 35973
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35973&action=edit
Simple replacement for String#format

Simple (maybe too simple) implementation of a pre-compiled version of
String#format that can be used to replace the really simple variants that are
used in the report generation process.

It is about 10 times faster than String#format, but slower than concatenation.

Benchmark                          Mode  Cnt         Score         Error  Units
MyBenchmark.concatenate           thrpt    5  69766343,254 ± 2020598,233  ops/s
MyBenchmark.preCompiledFormatter  thrpt    5  21432505,044 ±  563230,597  ops/s
MyBenchmark.stringFormat          thrpt    5   1665297,020 ±   34538,703  ops/s

-- 
You are receiving this mail because:
You are the assignee for the bug.
Mime
View raw message