Skip to content

Commit 12c85d3

Browse files
lemirejkeiser
andauthored
If we are going to have a google benchmark flag, we better make sure … (simdjson#551)
* If we are going to have a google benchmark flag, we better make sure that we test it out minimal (it should build). * Fix bench_dom_api Co-authored-by: John Keiser <john@johnkeiser.com>
1 parent a5afec1 commit 12c85d3

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.circleci/config.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,11 @@ jobs:
7979
executor: gcc7
8080
environment: { CMAKE_TEST_FLAGS: -DSIMDJSON_BUILD_STATIC=ON }
8181
steps: [ cmake_test ]
82+
gcc-avx-google-benchmarks:
83+
description: Build, run tests and check performance on GCC 7 with google benchmarks enabled
84+
executor: gcc7
85+
environment: { CMAKE_TEST_FLAGS: -DSIMDJSON_GOOGLE_BENCHMARKS=ON }
86+
steps: [ cmake_test ]
8287
gcc-avx-sanitize:
8388
description: Build, run tests and check performance on GCC 7 and AVX 2 with a cmake sanitize build
8489
executor: gcc7
@@ -120,6 +125,11 @@ jobs:
120125
executor: clang6
121126
environment: { CMAKE_TEST_FLAGS: -DSIMDJSON_BUILD_STATIC=ON }
122127
steps: [ init_clang6, cmake_test ]
128+
clang-avx-google-benchmarks:
129+
description: Build, run tests and check performance on clang 6 with google benchmarks enabled
130+
executor: clang6
131+
environment: { CMAKE_TEST_FLAGS: -DSIMDJSON_GOOGLE_BENCHMARKS=ON }
132+
steps: [ init_clang6, cmake_test ]
123133
clang-avx-sanitize:
124134
description: Build, run tests and check performance on clang 6 and AVX 2 with a cmake sanitize build
125135
executor: clang6
@@ -154,6 +164,7 @@ workflows:
154164
- gcc-avx
155165
- gcc-avx-dynamic
156166
- gcc-avx-static
167+
- gcc-avx-google-benchmarks
157168
- gcc-avx-sanitize
158169
- gcc-sse
159170
- gcc-sse-dynamic
@@ -162,6 +173,7 @@ workflows:
162173
- clang-avx
163174
- clang-avx-dynamic
164175
- clang-avx-static
176+
- clang-avx-google-benchmarks
165177
- clang-avx-sanitize
166178
- clang-sse
167179
- clang-sse-dynamic

benchmark/bench_dom_api.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#include <benchmark/benchmark.h>
2-
#include "simdjson/document.h"
3-
#include "simdjson/jsonparser.h"
2+
#include "simdjson.h"
43
using namespace simdjson;
54
using namespace benchmark;
65
using namespace std;

0 commit comments

Comments
 (0)