Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/llfio.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2021-02-24 16:08:45 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2021-03-16 13:21:45 +0300
commit0cf5eafa75c3cc66fd56a8a9a3dcc7089254846a (patch)
tree2158a256322d0bd2331ae9b49b80b70e743d61d4 /programs
parent37e0fd29adb4e1345eb8ca4893cb5f71210e2ea5 (diff)
Simplify non-native-Linux implementation. Appears to make little difference to benchmarks.
Diffstat (limited to 'programs')
-rw-r--r--programs/benchmark-dynamic_thread_pool_group/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/programs/benchmark-dynamic_thread_pool_group/main.cpp b/programs/benchmark-dynamic_thread_pool_group/main.cpp
index 841fcacf..4fc6c926 100644
--- a/programs/benchmark-dynamic_thread_pool_group/main.cpp
+++ b/programs/benchmark-dynamic_thread_pool_group/main.cpp
@@ -26,6 +26,8 @@ Distributed under the Boost Software License, Version 1.0.
static constexpr unsigned BENCHMARK_DURATION = 10;
//! Maximum work items to create
static constexpr unsigned MAX_WORK_ITEMS = 1024;
+// Size of buffer to SHA256
+static constexpr unsigned SHA256_BUFFER_SIZE = 4096;
#include "../../include/llfio/llfio.hpp"
@@ -156,7 +158,7 @@ template <class Runner> void benchmark(const char *name)
struct worker
{
shared_t *shared;
- char buffer[65536];
+ char buffer[SHA256_BUFFER_SIZE];
QUICKCPPLIB_NAMESPACE::algorithm::hash::sha256_hash::result_type hash;
uint64_t count{0};