Skip to content

Commit 22db594

Browse files
chore: test
1 parent 789fb65 commit 22db594

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

core/include/codspeed.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef CODSPEED_H
22
#define CODSPEED_H
33

4+
#include <cstdint>
45
#include <string>
56
#include <vector>
67

@@ -33,7 +34,7 @@ class CodSpeed {
3334
struct RawWalltimeBenchmark {
3435
std::string name;
3536
std::string uri;
36-
long iter_per_round;
37+
int64_t iter_per_round;
3738
double mean_ns;
3839
double median_ns;
3940
double stdev_ns;

core/src/walltime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct BenchmarkStats {
3131
double total_time;
3232
uint64_t iqr_outlier_rounds;
3333
uint64_t stdev_outlier_rounds;
34-
long iter_per_round;
34+
int64_t iter_per_round;
3535
uint64_t warmup_iters;
3636
};
3737

examples/google_benchmark_cmake/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ endif()
1111
# On the small benchmarks of this repo, most of the benches will be optimized out, but this is expected.
1212
set(CMAKE_BUILD_TYPE RelWithDebInfo)
1313

14-
option(BENCHMARK_ENABLE_GTEST_TESTS OFF)
14+
# Disable Google Benchmark tests
15+
set(BENCHMARK_ENABLE_GTEST_TESTS OFF CACHE BOOL "Enable testing of the benchmark library." FORCE)
16+
set(BENCHMARK_ENABLE_TESTING OFF CACHE BOOL "Enable testing of the benchmark library." FORCE)
1517

1618
FetchContent_Declare(
1719
google_benchmark

0 commit comments

Comments
 (0)