mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Do not use uppercase characters in source code filenames
This commit is contained in:
parent
419a1983ca
commit
e56771365b
6 changed files with 6 additions and 6 deletions
|
|
@ -1,34 +0,0 @@
|
|||
// Copyright (c) 2015-2017 The Bitcoin Core developers
|
||||
// Distributed under the MIT software license, see the accompanying
|
||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
||||
|
||||
#include <bench/bench.h>
|
||||
#include <validation.h>
|
||||
#include <utiltime.h>
|
||||
|
||||
// Sanity test: this should loop ten times, and
|
||||
// min/max/average should be close to 100ms.
|
||||
static void Sleep100ms(benchmark::State& state)
|
||||
{
|
||||
while (state.KeepRunning()) {
|
||||
MilliSleep(100);
|
||||
}
|
||||
}
|
||||
|
||||
BENCHMARK(Sleep100ms, 10);
|
||||
|
||||
// Extremely fast-running benchmark:
|
||||
#include <math.h>
|
||||
|
||||
volatile double sum = 0.0; // volatile, global so not optimized away
|
||||
|
||||
static void Trig(benchmark::State& state)
|
||||
{
|
||||
double d = 0.01;
|
||||
while (state.KeepRunning()) {
|
||||
sum += sin(d);
|
||||
d += 0.000001;
|
||||
}
|
||||
}
|
||||
|
||||
BENCHMARK(Trig, 12 * 1000 * 1000);
|
||||
Loading…
Add table
Add a link
Reference in a new issue