mirror of
https://github.com/KjellKod/g3log.git
synced 2025-01-06 08:41:13 +01:00
All unit test working. Next step is to increase performance even more
This commit is contained in:
parent
61af55e335
commit
2ba9d6187c
@ -43,7 +43,7 @@ TEST(ConceptSink, OneHundredSinks) {
|
|||||||
BoolList flags;
|
BoolList flags;
|
||||||
IntVector counts;
|
IntVector counts;
|
||||||
|
|
||||||
size_t NumberOfItems = 2;
|
size_t NumberOfItems = 100;
|
||||||
for (size_t index = 0; index < NumberOfItems; ++index) {
|
for (size_t index = 0; index < NumberOfItems; ++index) {
|
||||||
flags.push_back(make_shared < atomic<bool >> (false));
|
flags.push_back(make_shared < atomic<bool >> (false));
|
||||||
counts.push_back(make_shared < atomic<int >> (0));
|
counts.push_back(make_shared < atomic<int >> (0));
|
||||||
@ -65,7 +65,7 @@ TEST(ConceptSink, OneHundredSinks) {
|
|||||||
stream1 << "Hello to 100 receivers :)";
|
stream1 << "Hello to 100 receivers :)";
|
||||||
worker->save(message1);
|
worker->save(message1);
|
||||||
|
|
||||||
auto& stream2 = message1.get()->stream();
|
auto& stream2 = message2.get()->stream();
|
||||||
stream2 << "Hello to 100 receivers :)";
|
stream2 << "Hello to 100 receivers :)";
|
||||||
worker->save(message2);
|
worker->save(message2);
|
||||||
//worker->save("Hello to 100 receivers :)");
|
//worker->save("Hello to 100 receivers :)");
|
||||||
|
Loading…
Reference in New Issue
Block a user