mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Merge a7a6f1ff41 into merged_master (Bitcoin PR #18575)
This commit is contained in:
commit
4b1d94e736
10 changed files with 29 additions and 21 deletions
|
|
@ -4,7 +4,9 @@
|
|||
|
||||
#include <bench/bench.h>
|
||||
#include <checkqueue.h>
|
||||
#include <key.h>
|
||||
#include <prevector.h>
|
||||
#include <pubkey.h>
|
||||
#include <random.h>
|
||||
#include <util/system.h>
|
||||
|
||||
|
|
@ -24,6 +26,9 @@ static const unsigned int QUEUE_BATCH_SIZE = 128;
|
|||
// and there is a little bit of work done between calls to Add.
|
||||
static void CCheckQueueSpeedPrevectorJob(benchmark::State& state)
|
||||
{
|
||||
const ECCVerifyHandle verify_handle;
|
||||
ECC_Start();
|
||||
|
||||
struct PrevectorJob {
|
||||
prevector<PREVECTOR_SIZE, uint8_t> p;
|
||||
PrevectorJob(){
|
||||
|
|
@ -60,5 +65,6 @@ static void CCheckQueueSpeedPrevectorJob(benchmark::State& state)
|
|||
}
|
||||
tg.interrupt_all();
|
||||
tg.join_all();
|
||||
ECC_Stop();
|
||||
}
|
||||
BENCHMARK(CCheckQueueSpeedPrevectorJob, 1400);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue