https://github.com/danielkrupinski/cout-vs-printf
Cout vs printf benchmark
https://github.com/danielkrupinski/cout-vs-printf
c cpp performance
Last synced: about 1 month ago
JSON representation
Cout vs printf benchmark
- Host: GitHub
- URL: https://github.com/danielkrupinski/cout-vs-printf
- Owner: danielkrupinski
- License: mit
- Created: 2018-04-07T10:45:44.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-26T17:06:18.000Z (almost 8 years ago)
- Last Synced: 2025-03-14T16:49:38.169Z (over 1 year ago)
- Topics: c, cpp, performance
- Language: C++
- Homepage:
- Size: 125 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cout vs printf
Cout vs printf benchmark in C++
## Results
| Average time to print 1M | cout | printf |
|------------------------------------------------|--------|--------|
| Integer | 578 ms | 576 ms |
| Float | 982 ms | 1461 ms|
| String | 506 ms | 502 ms |