From 0ac1facf41805156da96eea8077e815dd0bc9893 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 23 Nov 2014 00:35:53 +0200 Subject: [PATCH 01/11] Update README.md --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ebcf93ba..e3f08d35 100644 --- a/README.md +++ b/README.md @@ -35,14 +35,15 @@ Just copy the files to your build tree and use a C++11 compiler ## Benchmarks -Here are some [benchmarks](bench) comparing spdlog vs boost log(1.56.0) on Ubuntu 64 bits, Intel i7-4770 CPU @ 3.40GHz. +Here are some [benchmarks](bench) comparing spdlog vs other libs on Ubuntu 64 bits, Intel i7-4770 CPU @ 3.40GHz. The bench writes 1,000,000 log lines to a rotating log file (using shared synchronous logger object): #### spdlog vs. boost - single thread |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| -|*boost*|1,000,000|1|**4.207s**| +|*boost log v1.56*|1,000,000|1|**4.207s**| +|*glogl v0.3.3*|1,000,000|1|**1.077s**| |*spdlog*|1,000,000|1|**0.975s**| @@ -50,7 +51,8 @@ The bench writes 1,000,000 log lines to a rotating log file (using shared synchr #### spdlog vs. boost - 10 threads |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| -|*boost*|1,000,000|10|**6.592s**| +|*boost log v1.56*|1,000,000|10|**6.592s**| +|*glogl v0.3.3*|1,000,000|1|**1.678s**| |*spdlog*|1,000,000|10|**0.961s**| From eaf3a9d584e58ff9d2b0ab451597d530a6fdfdd2 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 23 Nov 2014 00:36:17 +0200 Subject: [PATCH 02/11] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e3f08d35..1c9e8954 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ The bench writes 1,000,000 log lines to a rotating log file (using shared synchr |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost log v1.56*|1,000,000|1|**4.207s**| -|*glogl v0.3.3*|1,000,000|1|**1.077s**| +|*glog v0.3.3*|1,000,000|1|**1.077s**| |*spdlog*|1,000,000|1|**0.975s**| @@ -52,7 +52,7 @@ The bench writes 1,000,000 log lines to a rotating log file (using shared synchr |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost log v1.56*|1,000,000|10|**6.592s**| -|*glogl v0.3.3*|1,000,000|1|**1.678s**| +|*glog v0.3.3*|1,000,000|1|**1.678s**| |*spdlog*|1,000,000|10|**0.961s**| From 49d2893fd583e9c8406f28cbeff5e36741c95920 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 23 Nov 2014 00:37:00 +0200 Subject: [PATCH 03/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1c9e8954..aa4abf5b 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ The bench writes 1,000,000 log lines to a rotating log file (using shared synchr |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost log v1.56*|1,000,000|10|**6.592s**| -|*glog v0.3.3*|1,000,000|1|**1.678s**| +|*glog v0.3.3*|1,000,000|10|**1.678s**| |*spdlog*|1,000,000|10|**0.961s**| From df0a6ea032936e2322ecb06ef0c87d014bc6344b Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 23 Nov 2014 00:38:08 +0200 Subject: [PATCH 04/11] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index aa4abf5b..34874697 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Here are some [benchmarks](bench) comparing spdlog vs other libs on Ubuntu 64 bi The bench writes 1,000,000 log lines to a rotating log file (using shared synchronous logger object): -#### spdlog vs. boost - single thread +#### Single thread bench |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost log v1.56*|1,000,000|1|**4.207s**| @@ -48,7 +48,7 @@ The bench writes 1,000,000 log lines to a rotating log file (using shared synchr -#### spdlog vs. boost - 10 threads +#### 10 threads bench |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost log v1.56*|1,000,000|10|**6.592s**| From 08d09d5da93f87d2a5ffd80adf5f934fc9478de4 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 23 Nov 2014 00:44:49 +0200 Subject: [PATCH 05/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 34874697..9ca71b9a 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Just copy the files to your build tree and use a C++11 compiler ## Benchmarks -Here are some [benchmarks](bench) comparing spdlog vs other libs on Ubuntu 64 bits, Intel i7-4770 CPU @ 3.40GHz. +Here are some [benchmarks](bench) comparing spdlog vs other libs (Ubuntu 64, Intel i7-4770 CPU @ 3.40GHz). The bench writes 1,000,000 log lines to a rotating log file (using shared synchronous logger object): From 02928cc1ca2e6512212e5364de7d1a820bc3b02c Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 23 Nov 2014 00:45:58 +0200 Subject: [PATCH 06/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ca71b9a..6897d422 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Just copy the files to your build tree and use a C++11 compiler ## Benchmarks -Here are some [benchmarks](bench) comparing spdlog vs other libs (Ubuntu 64, Intel i7-4770 CPU @ 3.40GHz). +Here are some [benchmarks](bench) comparing spdlog vs other libs (Ubuntu 64, Intel i7-4770 CPU @ 3.40GHz). The bench writes 1,000,000 log lines to a rotating log file (using shared synchronous logger object): From f841f6c2a29eaedbe736f7d604e31f9a8be1f77f Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 23 Nov 2014 00:49:42 +0200 Subject: [PATCH 07/11] Update README.md --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6897d422..7d6fa1e6 100644 --- a/README.md +++ b/README.md @@ -35,9 +35,7 @@ Just copy the files to your build tree and use a C++11 compiler ## Benchmarks -Here are some [benchmarks](bench) comparing spdlog vs other libs (Ubuntu 64, Intel i7-4770 CPU @ 3.40GHz). - -The bench writes 1,000,000 log lines to a rotating log file (using shared synchronous logger object): +Below are some [benchmarks](benchmarks) comparisons under Ubuntu 64 bit, Intel i7-4770 CPU @ 3.40GHz: #### Single thread bench |library|log lines|threads|elapsed| @@ -48,7 +46,7 @@ The bench writes 1,000,000 log lines to a rotating log file (using shared synchr -#### 10 threads bench +#### 10 threads bench sharing same logger object between threads |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost log v1.56*|1,000,000|10|**6.592s**| From 94a7630ace63a4a7e89e306c11a8e9c5d82ec702 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 23 Nov 2014 00:52:59 +0200 Subject: [PATCH 08/11] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d6fa1e6..569075bc 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,8 @@ Below are some [benchmarks](benchmarks) comparisons under Ubuntu 64 bit, Intel i -#### 10 threads bench sharing same logger object between threads + +#### 10 threads bench |library|log lines|threads|elapsed| |-------|:-------:|:-----:|------:| |*boost log v1.56*|1,000,000|10|**6.592s**| From 46ee19cd1ef6f2d959bc09fbb344e65a423f60ba Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 23 Nov 2014 00:54:54 +0200 Subject: [PATCH 09/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 569075bc..fabfa375 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ Just copy the files to your build tree and use a C++11 compiler ## Benchmarks -Below are some [benchmarks](benchmarks) comparisons under Ubuntu 64 bit, Intel i7-4770 CPU @ 3.40GHz: +Below are some [benchmarks](benchmarks) under Ubuntu 64 bit, Intel i7-4770 CPU @ 3.40GHz: #### Single thread bench |library|log lines|threads|elapsed| From 07bbf4423f10b94638e8d29f2fb2c6bef371c033 Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 23 Nov 2014 01:00:34 +0200 Subject: [PATCH 10/11] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index fabfa375..7787ee39 100644 --- a/README.md +++ b/README.md @@ -38,11 +38,11 @@ Just copy the files to your build tree and use a C++11 compiler Below are some [benchmarks](benchmarks) under Ubuntu 64 bit, Intel i7-4770 CPU @ 3.40GHz: #### Single thread bench -|library|log lines|threads|elapsed| +|library|log lines|single thread|10 threads |-------|:-------:|:-----:|------:| -|*boost log v1.56*|1,000,000|1|**4.207s**| -|*glog v0.3.3*|1,000,000|1|**1.077s**| -|*spdlog*|1,000,000|1|**0.975s**| +|*boost log v1.56*|1,000,000|**4.207s**|**6.592s**| +|*glog v0.3.3*|1,000,000|**1.077s**|**1.678s**| +|*spdlog*|1,000,000|**0.975s**|**0.961s**| From a0673a4b86b56d645e6c03f600d8673157e731bd Mon Sep 17 00:00:00 2001 From: Gabi Melman Date: Sun, 23 Nov 2014 01:01:07 +0200 Subject: [PATCH 11/11] Update README.md --- README.md | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/README.md b/README.md index 7787ee39..21218cde 100644 --- a/README.md +++ b/README.md @@ -37,26 +37,12 @@ Just copy the files to your build tree and use a C++11 compiler Below are some [benchmarks](benchmarks) under Ubuntu 64 bit, Intel i7-4770 CPU @ 3.40GHz: -#### Single thread bench |library|log lines|single thread|10 threads |-------|:-------:|:-----:|------:| |*boost log v1.56*|1,000,000|**4.207s**|**6.592s**| |*glog v0.3.3*|1,000,000|**1.077s**|**1.678s**| |*spdlog*|1,000,000|**0.975s**|**0.961s**| - - - -#### 10 threads bench -|library|log lines|threads|elapsed| -|-------|:-------:|:-----:|------:| -|*boost log v1.56*|1,000,000|10|**6.592s**| -|*glog v0.3.3*|1,000,000|10|**1.678s**| -|*spdlog*|1,000,000|10|**0.961s**| - - - - ## Usage Example ```c++ #include