From a46e967dafe02a837fffaa4f07638e614988fe71 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:43:20 +0200 Subject: [PATCH 01/17] Update README.md --- README.md | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index d82cf645..51ac6f8c 100644 --- a/README.md +++ b/README.md @@ -25,21 +25,24 @@ Just copy the files to your build tree and use a C++11 compiler * Logging levels * Custom formatting with user defined patterns -## Benchmarks -Here are some benchmarks (Ubuntu 64 bits, Intel i7-4770 CPU @ 3.40GHz) -``` -******************************************************************************* -Single thread, 250,000 iterations, flush every 1000 lines -******************************************************************************* -rotating_st... 817,860 lines/sec -daily_st... 827,820 lines /sec +## Benchmarks comparison + +Here are some [benchmarks](bench-comparison) comparing spdlog vs boost log(1.56.0) on Ubuntu 64 bits, Intel i7-4770 CPU @ 3.40GHz. + +The bench writes 1000,000 log lines to a rotating log file of size 10MB with 5 back rotated files. +The multi threaded test uses a shared logger object across 10 threads. + + +|library|log lines|threads|elapsed| +|-------|:-------:|:-----:|------:| +|*boost*|1000,000|1|**4.207s**| +|*spdlog*|1000,000|1|**0.975s**| + +|library|log lines|threads|elapsed| +|-------|:-------:|:-----:|------:| +|*boost*|1000,000|10|**6.592s**| +|*spdlog log*|1000,000|10|**0.961s**| -******************************************************************************* -4 threads sharing same logger, 250,000 iterations, flush every 1000 lines -******************************************************************************* -rotating_mt... 1,476,013 lines/sec -daily_mt... 1,477,619 lines/sec -``` ## Usage Example ```c++ From f72e5ee655037371d3afc08e77f6d4f747bd2dde Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:45:20 +0200 Subject: [PATCH 02/17] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 51ac6f8c..630c2341 100644 --- a/README.md +++ b/README.md @@ -32,12 +32,13 @@ Here are some [benchmarks](bench-comparison) comparing spdlog vs boost log(1.56. The bench writes 1000,000 log lines to a rotating log file of size 10MB with 5 back rotated files. The multi threaded test uses a shared logger object across 10 threads. - +### spdlog vs boost - Single threaded benchmark |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|1|**4.207s**| |*spdlog*|1000,000|1|**0.975s**| +### spdlog vs boost - Multi threaded threaded benchmark |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|10|**6.592s**| From be4700cbd2aa13ad41927995f2deda6cb422a0fa Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:45:52 +0200 Subject: [PATCH 03/17] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 630c2341..f032ace0 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,13 @@ Here are some [benchmarks](bench-comparison) comparing spdlog vs boost log(1.56. The bench writes 1000,000 log lines to a rotating log file of size 10MB with 5 back rotated files. The multi threaded test uses a shared logger object across 10 threads. -### spdlog vs boost - Single threaded benchmark +##### spdlog vs boost - Single threaded benchmark |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|1|**4.207s**| |*spdlog*|1000,000|1|**0.975s**| -### spdlog vs boost - Multi threaded threaded benchmark +##### spdlog vs boost - Multi threaded threaded benchmark |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|10|**6.592s**| From 443e641c81326e3cc9b7ce0c183fefdc9238d448 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:46:58 +0200 Subject: [PATCH 04/17] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f032ace0..a5eba690 100644 --- a/README.md +++ b/README.md @@ -32,17 +32,17 @@ Here are some [benchmarks](bench-comparison) comparing spdlog vs boost log(1.56. The bench writes 1000,000 log lines to a rotating log file of size 10MB with 5 back rotated files. The multi threaded test uses a shared logger object across 10 threads. -##### spdlog vs boost - Single threaded benchmark +#### spdlog vs boost - Single threaded benchmark |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|1|**4.207s**| |*spdlog*|1000,000|1|**0.975s**| -##### spdlog vs boost - Multi threaded threaded benchmark +#### spdlog vs boost - Multi threaded threaded benchmark |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|10|**6.592s**| -|*spdlog log*|1000,000|10|**0.961s**| +|*spdlog*|1000,000|10|**0.961s**| ## Usage Example From 8b587b6ff216ce383fb6972b035d0f958b0c6e75 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:47:50 +0200 Subject: [PATCH 05/17] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a5eba690..aeda3ca8 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Just copy the files to your build tree and use a C++11 compiler * visual studio 2013 ##Features -* Very fast - performance is the primary goal +* Very fast - performance is the primary goal (see becnhmarks below) * Headers only * No dependencies * Cross platform - Linux / Windows on 32/64 bits From 426b083af3268ebbdd87fddc40d01ea8a9a49a62 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:48:28 +0200 Subject: [PATCH 06/17] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aeda3ca8..308edd2b 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,13 @@ Here are some [benchmarks](bench-comparison) comparing spdlog vs boost log(1.56. The bench writes 1000,000 log lines to a rotating log file of size 10MB with 5 back rotated files. The multi threaded test uses a shared logger object across 10 threads. -#### spdlog vs boost - Single threaded benchmark +#### spdlog vs boost - Single threaded |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|1|**4.207s**| |*spdlog*|1000,000|1|**0.975s**| -#### spdlog vs boost - Multi threaded threaded benchmark +#### spdlog vs boost - Multi threaded threaded |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|10|**6.592s**| From 7900b83d1a79a7976166b2d92fc5074ecf3b0dcc Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:49:14 +0200 Subject: [PATCH 07/17] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 308edd2b..68c8bc8a 100644 --- a/README.md +++ b/README.md @@ -32,13 +32,14 @@ Here are some [benchmarks](bench-comparison) comparing spdlog vs boost log(1.56. The bench writes 1000,000 log lines to a rotating log file of size 10MB with 5 back rotated files. The multi threaded test uses a shared logger object across 10 threads. -#### spdlog vs boost - Single threaded +#### spdlog vs. boost - Single threaded |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|1|**4.207s**| |*spdlog*|1000,000|1|**0.975s**| -#### spdlog vs boost - Multi threaded threaded + +#### spdlog vs. boost - Multi threaded |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|10|**6.592s**| From 94449a40f231010dbf97bf70498898a4a68d965b Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:49:51 +0200 Subject: [PATCH 08/17] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 68c8bc8a..3750c26f 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,7 @@ The multi threaded test uses a shared logger object across 10 threads. |*spdlog*|1000,000|1|**0.975s**| + #### spdlog vs. boost - Multi threaded |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| From a7937af5b6e5d5cb44882f2517cf0062d6143e3c Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:51:32 +0200 Subject: [PATCH 09/17] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3750c26f..01d2aa53 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Here are some [benchmarks](bench-comparison) comparing spdlog vs boost log(1.56. The bench writes 1000,000 log lines to a rotating log file of size 10MB with 5 back rotated files. The multi threaded test uses a shared logger object across 10 threads. -#### spdlog vs. boost - Single threaded +#### spdlog vs. boost - single thread |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|1|**4.207s**| @@ -40,7 +40,7 @@ The multi threaded test uses a shared logger object across 10 threads. -#### spdlog vs. boost - Multi threaded +#### spdlog vs. boost - 10 threads |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|10|**6.592s**| From 3fd55537bf035ad2a2700cb48351cfb05c5218d1 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:52:30 +0200 Subject: [PATCH 10/17] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 01d2aa53..b721e838 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Just copy the files to your build tree and use a C++11 compiler Here are some [benchmarks](bench-comparison) comparing spdlog vs boost log(1.56.0) on Ubuntu 64 bits, Intel i7-4770 CPU @ 3.40GHz. The bench writes 1000,000 log lines to a rotating log file of size 10MB with 5 back rotated files. -The multi threaded test uses a shared logger object across 10 threads. + #### spdlog vs. boost - single thread |library|log lines|threads|elapsed| @@ -41,6 +41,7 @@ The multi threaded test uses a shared logger object across 10 threads. #### spdlog vs. boost - 10 threads +- shared logger object across multiple threads. |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|10|**6.592s**| From f4f5c200b18393abe23ac6b7ebb764a9747d5551 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:53:00 +0200 Subject: [PATCH 11/17] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b721e838..cb59fdc4 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,8 @@ The bench writes 1000,000 log lines to a rotating log file of size 10MB with 5 b #### spdlog vs. boost - 10 threads -- shared logger object across multiple threads. +shared logger object across multiple threads. + |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|10|**6.592s**| From 04a6400482e10d5f82ed46e8b130b386bae5c504 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:54:51 +0200 Subject: [PATCH 12/17] Update README.md --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cb59fdc4..c710eef7 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,6 @@ Here are some [benchmarks](bench-comparison) comparing spdlog vs boost log(1.56. The bench writes 1000,000 log lines to a rotating log file of size 10MB with 5 back rotated files. - #### spdlog vs. boost - single thread |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| @@ -41,12 +40,12 @@ The bench writes 1000,000 log lines to a rotating log file of size 10MB with 5 b #### spdlog vs. boost - 10 threads -shared logger object across multiple threads. - |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost*|1000,000|10|**6.592s**| |*spdlog*|1000,000|10|**0.961s**| +shared logger object across multiple threads. + ## Usage Example From a1150e77547786529e84b0900b692d7c0d99a878 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:57:02 +0200 Subject: [PATCH 13/17] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c710eef7..643fc9fb 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ The bench writes 1000,000 log lines to a rotating log file of size 10MB with 5 b |-------|:-------:|:-----:|------:| |*boost*|1000,000|10|**6.592s**| |*spdlog*|1000,000|10|**0.961s**| -shared logger object across multiple threads. + From 238039f7d77ddca4758615b8107a2e7a52ce6b61 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:58:09 +0200 Subject: [PATCH 14/17] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 643fc9fb..820dc1f6 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Just copy the files to your build tree and use a C++11 compiler Here are some [benchmarks](bench-comparison) comparing spdlog vs boost log(1.56.0) on Ubuntu 64 bits, Intel i7-4770 CPU @ 3.40GHz. -The bench writes 1000,000 log lines to a rotating log file of size 10MB with 5 back rotated files. +The bench writes 1000,000 log lines to a rotating log file using a shared logger object. #### spdlog vs. boost - single thread |library|log lines|threads|elapsed| From 9e5ab81d58d98be48b4545763effa0bfb21dacb5 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:58:54 +0200 Subject: [PATCH 15/17] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 820dc1f6..01271f52 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Just copy the files to your build tree and use a C++11 compiler Here are some [benchmarks](bench-comparison) comparing spdlog vs boost log(1.56.0) on Ubuntu 64 bits, Intel i7-4770 CPU @ 3.40GHz. -The bench writes 1000,000 log lines to a rotating log file using a shared logger object. +The bench writes 1000,000 log lines to a rotating log file: #### spdlog vs. boost - single thread |library|log lines|threads|elapsed| From 20d3b722f4807edab9693e7ccf3a9c6b5b7696af Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:59:36 +0200 Subject: [PATCH 16/17] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 01271f52..6c66fccc 100644 --- a/README.md +++ b/README.md @@ -29,13 +29,13 @@ Just copy the files to your build tree and use a C++11 compiler Here are some [benchmarks](bench-comparison) comparing spdlog vs boost log(1.56.0) on Ubuntu 64 bits, Intel i7-4770 CPU @ 3.40GHz. -The bench writes 1000,000 log lines to a rotating log file: +The bench writes 1,000,000 log lines to a rotating log file: #### spdlog vs. boost - single thread |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| -|*boost*|1000,000|1|**4.207s**| -|*spdlog*|1000,000|1|**0.975s**| +|*boost*|1,000,000|1|**4.207s**| +|*spdlog*|1,000,000|1|**0.975s**| From 640790ffc0bd6cd999af18684949b706fb093299 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Tue, 4 Nov 2014 01:59:57 +0200 Subject: [PATCH 17/17] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6c66fccc..f6a287bb 100644 --- a/README.md +++ b/README.md @@ -42,8 +42,8 @@ The bench writes 1,000,000 log lines to a rotating log file: #### spdlog vs. boost - 10 threads |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| -|*boost*|1000,000|10|**6.592s**| -|*spdlog*|1000,000|10|**0.961s**| +|*boost*|1,000,000|10|**6.592s**| +|*spdlog*|1,000,000|10|**0.961s**|