Skip to content

Commit 35e02d8

Browse files
committed
Make benchmark use the executable grammar
1 parent c022be9 commit 35e02d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

samples/today/benchmark.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
using namespace graphql;
1515

16+
using namespace std::literals;
17+
1618
int main(int argc, char** argv)
1719
{
1820
response::IdType binAppointmentId;
@@ -79,7 +81,7 @@ int main(int argc, char** argv)
7981
{
8082
try
8183
{
82-
auto query = R"gql(query {
84+
auto query = peg::parseString(R"gql(query {
8385
appointments {
8486
pageInfo { hasNextPage }
8587
edges {
@@ -91,7 +93,7 @@ int main(int argc, char** argv)
9193
}
9294
}
9395
}
94-
})gql"_graphql;
96+
})gql"sv);
9597

9698
std::cout << "Executing query..." << std::endl;
9799

0 commit comments

Comments
 (0)