diff --git a/examples/bench_05/main.c b/examples/bench_05/main.c new file mode 100644 index 0000000000000000000000000000000000000000..874d24951072635f31556b18cd1d753afc1ed124 --- /dev/null +++ b/examples/bench_05/main.c @@ -0,0 +1,37 @@ +#include +#include "../../reowolf.h" +#include "../utility.c" +int main(int argc, char** argv) { + int i, port_pairs, proto_components; + port_pairs = atoi(argv[1]); + proto_components = atoi(argv[2]); + printf("port_pairs %d, proto_components: %d\n", port_pairs, proto_components); + + const unsigned char pdl[] = + "primitive trivial_loop() { " + " while(true) synchronous{}" + "} " + ; + Arc_ProtocolDescription * pd = protocol_description_parse(pdl, sizeof(pdl)-1); + char logpath[] = "./bench_5.txt"; + Connector * c = connector_new_logging(pd, logpath, sizeof(logpath)-1); + for (i=0; i