Skip to content

Commit

Permalink
✨ Add model for drogon library
Browse files Browse the repository at this point in the history
  • Loading branch information
raidgar98 committed Feb 3, 2023
1 parent 4dbb6a0 commit a4bda4c
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion benchmarks/controllers/drogon_benchmark_controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,32 @@

#include <base_benchmark_controller.hpp>

struct drogon_benchmark_controller : public base_benchmark_controller<drogon_benchmark_controller>
namespace drogon_model
{
struct A
{
bool a1{};
int32_t a2{};
uint32_t a3{};
float a4{};
double a5{};
};

struct B
{
std::vector<int> b1{};
std::vector<double> b2{};
std::vector<A> b3{};
};

struct C : public A
{
A c1{};
B c2{};
};
}

struct drogon_benchmark_controller : public base_benchmark_controller<drogon_benchmark_controller, typename drogon_model::C>
{
using base_benchmark_controller::base_benchmark_controller;

Expand Down

0 comments on commit a4bda4c

Please sign in to comment.