SPARK-1653, The initial crash that john reported turned out to be a monster.
Events were getting re-ordered in our event queue, possibly due to this: https://github.com/cameron314/concurrentqueue/issues/126 We abandoned the moody camel queue.
This commit is contained in:
1 parent
c19b720121
commit
8e00da5a72
6 files changed
+237
-241
No files matched your search
@@ -22,6 +22,7 @@
|
||||
#include <iostream>
|
||||
#include <moodycamel/concurrentqueue.h>
|
||||
#include <mutex>
|
||||
#include <tbb/concurrent_queue.h>
|
||||
|
||||
namespace bts {
|
||||
namespace cmd {
|
||||
@@ -451,6 +452,18 @@ static void boost_lockless_queue(benchmark::State &state) {
|
||||
}
|
||||
BENCHMARK(boost_lockless_queue);
|
||||
|
||||
static void tbb_concurrent_queue(benchmark::State &state) {
|
||||
|
||||
using FreeList = tbb::concurrent_queue<void *>;
|
||||
FreeList queue;
|
||||
for (auto _ : state) {
|
||||
void *result;
|
||||
queue.push(nullptr);
|
||||
benchmark::DoNotOptimize(queue.try_pop(result));
|
||||
}
|
||||
}
|
||||
BENCHMARK(tbb_concurrent_queue);
|
||||
|
||||
static void moody_camel_queue(benchmark::State &state) {
|
||||
using Q = moodycamel::ConcurrentQueue<void *>;
|
||||
Q queue(1000000);
|
||||
|
||||
Reference in new issue
Block a user