diff options
| author | Garrett D'Amore <garrett@damore.org> | 2021-01-01 11:30:03 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2021-01-01 12:46:17 -0800 |
| commit | ed542ac45e00c9b2faa0b41f3c00de6e291e5678 (patch) | |
| tree | 673924ff077d468e6756529c2c204698d3faa47c /src/tools/perf/CMakeLists.txt | |
| parent | 1413b2421a82cd9b9cde178d44fb60c7893176b0 (diff) | |
| download | nng-ed542ac45e00c9b2faa0b41f3c00de6e291e5678.tar.gz nng-ed542ac45e00c9b2faa0b41f3c00de6e291e5678.tar.bz2 nng-ed542ac45e00c9b2faa0b41f3c00de6e291e5678.zip | |
fixes #1345 Restructure the source tree
This is not quite complete, but it sets the stage for other
protocols (such as zmq or mqtt) to be added to the project.
Diffstat (limited to 'src/tools/perf/CMakeLists.txt')
| -rw-r--r-- | src/tools/perf/CMakeLists.txt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/tools/perf/CMakeLists.txt b/src/tools/perf/CMakeLists.txt new file mode 100644 index 00000000..135544bb --- /dev/null +++ b/src/tools/perf/CMakeLists.txt @@ -0,0 +1,35 @@ +# +# Copyright 2021 Staysail Systems, Inc. <info@staysail.tech> +# +# This software is supplied under the terms of the MIT License, a +# copy of which should be located in the distribution where this +# file was obtained (LICENSE.txt). A copy of the license may also be +# found online at https://opensource.org/licenses/MIT. +# + +# Build performance tests. + +nng_directory(perf) + +if (NNG_TESTS) + macro (add_nng_perf NAME) + add_executable (${NAME} perf.c) + target_link_libraries (${NAME} nng nng_private) + endmacro (add_nng_perf) + + add_nng_perf(remote_lat) + add_nng_perf(local_lat) + add_nng_perf(local_thr) + add_nng_perf(remote_thr) + add_nng_perf(inproc_thr) + add_nng_perf(inproc_lat) + + add_test (NAME nng.inproc_lat COMMAND inproc_lat 64 10000) + set_tests_properties (nng.inproc_lat PROPERTIES TIMEOUT 30) + + add_test (NAME nng.inproc_thr COMMAND inproc_thr 1400 10000) + set_tests_properties (nng.inproc_thr PROPERTIES TIMEOUT 30) + + add_executable (pubdrop pubdrop.c) + target_link_libraries(pubdrop nng nng_private) +endif () |
