Closed swebb2066 closed 10 months ago
On Ubuntu gcc 9, benchmarks improve from: | Benchmark | Time | CPU | Iterations |
---|---|---|---|---|
Testing disabled logging request | 0.474 ns | 0.474 ns | 1000000000 | |
Testing disabled logging request/threads:16 | 0.093 ns | 1.01 ns | 681895600 | |
Logging 5 char string using MessageBuffer, pattern: %m%n | 413 ns | 413 ns | 1700177 | |
Logging 5 char string using MessageBuffer, pattern: %m%n/threads:16 | 977 ns | 7913 ns | 91360 | |
Logging 49 char string using MessageBuffer, pattern: %m%n | 435 ns | 435 ns | 1606003 | |
Logging 49 char string using MessageBuffer, pattern: %m%n/threads:16 | 980 ns | 7856 ns | 92928 | |
Logging int value using MessageBuffer, pattern: %m%n | 608 ns | 607 ns | 1198654 | |
Logging int value using MessageBuffer, pattern: %m%n/threads:16 | 1000 ns | 8050 ns | 88992 | |
Logging int+float using MessageBuffer, pattern: %m%n | 1068 ns | 1068 ns | 656795 | |
Logging int+float using MessageBuffer, pattern: %m%n/threads:16 | 946 ns | 7671 ns | 86656 | |
Logging int value using MessageBuffer, pattern: [%d] %m%n | 633 ns | 633 ns | 1106264 | |
Logging int value using MessageBuffer, pattern: [%d] [%c] [%p] %m%n | 631 ns | 631 ns | 1112696 | |
Logging 49 char string using FMT, pattern: %m%n | 404 ns | 404 ns | 1728028 | |
Logging 49 char string using FMT, pattern: %m%n/threads:16 | 982 ns | 7914 ns | 91152 | |
Logging int value using FMT, pattern: %m%n | 429 ns | 429 ns | 1629010 | |
Logging int value using FMT, pattern: %m%n/threads:16 | 982 ns | 7928 ns | 90304 | |
Logging int+float using FMT, pattern: %m%n | 623 ns | 623 ns | 1124386 | |
Logging int+float using FMT, pattern: %m%n/threads:16 | 984 ns | 7928 ns | 88768 | |
Async, int value using MessageBuffer, pattern: %m%n | 605 ns | 605 ns | 1206157 | |
Async, int value using MessageBuffer, pattern: %m%n/threads:16 | 1007 ns | 8162 ns | 89472 |
to: | Benchmark | Time | CPU | Iterations |
---|---|---|---|---|
Testing disabled logging request | 0.474 ns | 0.474 ns | 1000000000 | |
Testing disabled logging request/threads:16 | 0.092 ns | 1.01 ns | 674458208 | |
Logging 5 char string using MessageBuffer, pattern: %m%n | 416 ns | 416 ns | 1682651 | |
Logging 5 char string using MessageBuffer, pattern: %m%n/threads:16 | 993 ns | 7991 ns | 91584 | |
Logging 49 char string using MessageBuffer, pattern: %m%n | 443 ns | 443 ns | 1579432 | |
Logging 49 char string using MessageBuffer, pattern: %m%n/threads:16 | 973 ns | 7863 ns | 92608 | |
Logging int value using MessageBuffer, pattern: %m%n | 606 ns | 606 ns | 1162348 | |
Logging int value using MessageBuffer, pattern: %m%n/threads:16 | 990 ns | 8046 ns | 88832 | |
Logging int+float using MessageBuffer, pattern: %m%n | 1092 ns | 1092 ns | 637467 | |
Logging int+float using MessageBuffer, pattern: %m%n/threads:16 | 991 ns | 8016 ns | 85456 | |
Logging int value using MessageBuffer, pattern: [%d] %m%n | 595 ns | 595 ns | 1174665 | |
Logging int value using MessageBuffer, pattern: [%d] [%c] [%p] %m%n | 594 ns | 594 ns | 1175265 | |
Logging 49 char string using FMT, pattern: %m%n | 409 ns | 409 ns | 1714238 | |
Logging 49 char string using FMT, pattern: %m%n/threads:16 | 961 ns | 7729 ns | 94400 | |
Logging int value using FMT, pattern: %m%n | 436 ns | 436 ns | 1604155 | |
Logging int value using FMT, pattern: %m%n/threads:16 | 970 ns | 7807 ns | 93296 | |
Logging int+float using FMT, pattern: %m%n | 578 ns | 578 ns | 1210732 | |
Logging int+float using FMT, pattern: %m%n/threads:16 | 981 ns | 7910 ns | 92160 | |
Async, int value using MessageBuffer, pattern: %m%n | 605 ns | 605 ns | 1171481 | |
Async, int value using MessageBuffer, pattern: %m%n/threads:16 | 997 ns | 8010 ns | 89648 |
to