include.am 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # vim:ft=automake
  2. # Gearman server and library
  3. # Copyright (C) 2008 Brian Aker, Eric Day
  4. # Copyright (C) 2009 Brian Aker, Eric Day, Monty Taylor
  5. # All rights reserved.
  6. #
  7. # Use and distribution licensed under the BSD license. See
  8. # the COPYING file in the parent directory for full text.
  9. #
  10. # Included from Top Level Makefile.am
  11. # All paths should be given relative to the root
  12. noinst_PROGRAMS+= benchmark/blobslap_client
  13. noinst_PROGRAMS+= benchmark/blobslap_worker
  14. noinst_HEADERS+= benchmark/benchmark.h
  15. noinst_LTLIBRARIES+= benchmark/libbenchmark.la
  16. benchmark_libbenchmark_la_SOURCES= benchmark/benchmark.cc
  17. benchmark_blobslap_client_SOURCES= benchmark/blobslap_client.cc
  18. benchmark_blobslap_client_LDADD= benchmark/libbenchmark.la libgearman/libgearman.la
  19. benchmark_blobslap_worker_CXXFLAGS=
  20. benchmark_blobslap_worker_LDADD=
  21. benchmark_blobslap_worker_LDFLAGS=
  22. benchmark_blobslap_worker_SOURCES=
  23. benchmark_blobslap_worker_CXXFLAGS+= @PTHREAD_CFLAGS@
  24. benchmark_blobslap_worker_LDADD+= @BOOST_PROGRAM_OPTIONS_LIB@
  25. benchmark_blobslap_worker_LDADD+= @PTHREAD_LIBS@
  26. benchmark_blobslap_worker_LDADD+= benchmark/libbenchmark.la
  27. benchmark_blobslap_worker_LDADD+= libgearman/libgearman.la
  28. benchmark_blobslap_worker_SOURCES+= benchmark/blobslap_worker.cc
  29. benchmark_blobslap_worker_SOURCES+= util/daemon.cc
  30. benchmark_blobslap_worker_SOURCES+= util/logfile.cc
  31. benchmark_blobslap_worker_SOURCES+= util/pidfile.cc
  32. benchmark_blobslap_worker_SOURCES+= util/signal.cc
  33. GEARMAND_BE_PIDFILE = ${abs_top_builddir}/tests/var/tmp/Begearmand.pid
  34. GEARMAND_BENCHMARK_PORT = 6000
  35. BENCHMARK_COUNT = 100
  36. BENCHMARK_TASK_COUNT = 10
  37. BENCHMARK_TASK_COUNT_TOTAL = 1000
  38. benchmark-test: benchmark/blobslap_client benchmark/blobslap_worker gearmand/gearmand
  39. @echo Running benchmarking tool, this may take a couple of seconds
  40. @gearmand/gearmand --port=$(GEARMAND_BENCHMARK_PORT) --daemon --pid-file=$(GEARMAND_BE_PIDFILE)
  41. @libtest/wait $(GEARMAND_BE_PIDFILE)
  42. @benchmark/blobslap_worker -p $(GEARMAND_BENCHMARK_PORT) -d
  43. @benchmark/blobslap_client -c $(BENCHMARK_COUNT) -n $(BENCHMARK_TASK_COUNT) -p $(GEARMAND_BENCHMARK_PORT) -e
  44. @cat $(GEARMAND_BE_PIDFILE) | xargs kill