Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve benchmark checks #290

Merged
merged 2 commits into from
Nov 16, 2023
Merged

Improve benchmark checks #290

merged 2 commits into from
Nov 16, 2023

Conversation

swebb2066
Copy link
Contributor

No description provided.

@swebb2066
Copy link
Contributor Author

swebb2066 commented Nov 16, 2023

Sample output:

Run on (8 X 2195.17 MHz CPU s)
CPU Caches:
L1 Data 32 KiB (x4)
L1 Instruction 32 KiB (x4)
L2 Unified 256 KiB (x4)
L3 Unified 6144 KiB (x1)
Load Average: 0.19, 0.05, 0.01

Benchmark Time CPU Iterations
Testing disabled logging request 0.474 ns 0.474 ns 1000000000
Testing disabled logging request/threads:6 0.141 ns 0.849 ns 809199660
Logging static string 440 ns 440 ns 1593110
Logging static string with FMT 410 ns 410 ns 1698828
Logging int value with FMT 433 ns 433 ns 1616415
Logging int value with FMT/threads:6 1404 ns 5644 ns 136392
Logging int+float with FMT 570 ns 570 ns 1217421
Logging int+float with FMT/threads:6 1383 ns 6659 ns 123738
Logging int value with std::ostream 600 ns 600 ns 1158536
Logging int value with std::ostream/threads:6 1150 ns 5969 ns 116046
Logging int+float with std::ostream 1202 ns 1202 ns 584309
Logging int+float with std::ostream/threads:6 1156 ns 6308 ns 116718
NoFormat pattern: %m%n 783 ns 783 ns 890198
DateOnly pattern: [%d] %m%n 784 ns 784 ns 893790
DateClassLevel pattern: [%d] [%c] [%p] %m%n 806 ns 806 ns 897228
Logging int value with std::ostream to AsyncAppender 596 ns 596 ns 1170299
Logging int value with std::ostream to AsyncAppender/threads:6 967 ns 5326 ns 131532
`

@swebb2066 swebb2066 merged commit b54fb78 into master Nov 16, 2023
24 checks passed
@swebb2066 swebb2066 deleted the improve_benchmark branch November 16, 2023 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants