[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r28397 - gnunet/src/ats
From: |
gnunet |
Subject: |
[GNUnet-SVN] r28397 - gnunet/src/ats |
Date: |
Mon, 5 Aug 2013 14:49:28 +0200 |
Author: wachs
Date: 2013-08-05 14:49:28 +0200 (Mon, 05 Aug 2013)
New Revision: 28397
Added:
gnunet/src/ats/perf_ats.c
Modified:
gnunet/src/ats/Makefile.am
Log:
basics for generic ats benchmark
Modified: gnunet/src/ats/Makefile.am
===================================================================
--- gnunet/src/ats/Makefile.am 2013-08-05 12:38:38 UTC (rev 28396)
+++ gnunet/src/ats/Makefile.am 2013-08-05 12:49:28 UTC (rev 28397)
@@ -78,10 +78,9 @@
test_ats_simplistic_switch_networks \
test_ats_simplistic_change_preference \
test_ats_api_performance_list_addresses \
- test_ats_api_performance_address_info
-# test_ats_api_scheduling_get_type
-# test_ats_api_bandwidth_consumption
-# test_ats_simplistic_pref_aging
+ test_ats_api_performance_address_info \
+ perf_ats_simplistic_bandwidth \
+ perf_ats_simplistic_delay
endif
check_PROGRAMS = \
@@ -229,7 +228,6 @@
$(top_builddir)/src/statistics/libgnunetstatistics.la \
$(top_builddir)/src/ats/libgnunetats.la
-
perf_ats_mlp_SOURCES = \
$(GN_MLP_SRC) perf_ats_mlp.c test_ats_api_common.c
gnunet-service-ats_normalization.c
perf_ats_mlp_LDADD = \
@@ -248,20 +246,20 @@
$(top_builddir)/src/testing/libgnunettesting.la \
$(top_builddir)/src/ats/libgnunetats.la
-#test_ats_mlp_averaging_SOURCES = \
-# $(GN_MLP_SRC) test_ats_mlp_averaging.c test_ats_api_common.c
-#test_ats_mlp_averaging_LDADD = \
-# $(GN_LIBGLPK) \
-# $(top_builddir)/src/util/libgnunetutil.la \
-# $(top_builddir)/src/statistics/libgnunetstatistics.la
+# performance tests
-#test_ats_api_bandwidth_consumption_SOURCES = \
-# test_ats_api_bandwidth_consumption.c
-#test_ats_api_bandwidth_consumption_LDADD = \
-# $(top_builddir)/src/util/libgnunetutil.la \
-# $(top_builddir)/src/testing/libgnunettesting.la \
-# $(top_builddir)/src/ats/libgnunetats.la
+perf_ats_simplistic_bandwidth_SOURCES = \
+ perf_ats.c
+perf_ats_simplistic_bandwidth_LDADD = \
+ $(top_builddir)/src/util/libgnunetutil.la \
+ $(top_builddir)/src/ats/libgnunetats.la
+perf_ats_simplistic_delay_SOURCES = \
+ perf_ats.c
+perf_ats_simplistic_delay_LDADD = \
+ $(top_builddir)/src/util/libgnunetutil.la \
+ $(top_builddir)/src/ats/libgnunetats.la
+
EXTRA_DIST = \
ats.h \
Added: gnunet/src/ats/perf_ats.c
===================================================================
--- gnunet/src/ats/perf_ats.c (rev 0)
+++ gnunet/src/ats/perf_ats.c 2013-08-05 12:49:28 UTC (rev 28397)
@@ -0,0 +1,64 @@
+/*
+ This file is part of GNUnet.
+ (C) 2010,2011 Christian Grothoff (and other contributing authors)
+
+ GNUnet is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published
+ by the Free Software Foundation; either version 3, or (at your
+ option) any later version.
+
+ GNUnet is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with GNUnet; see the file COPYING. If not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+*/
+/**
+ * @file ats/test_ats.c
+ * @brief ats benchmark
+ * @author Christian Grothoff
+ * @author Matthias Wachs
+ */
+#include "platform.h"
+#include "gnunet_util_lib.h"
+
+static int ret;
+
+static void
+check (void *cls, char *const *args, const char *cfgfile,
+ const struct GNUNET_CONFIGURATION_Handle *cfg)
+{
+ ret = 0;
+}
+
+
+int
+main (int argc, char *argv[])
+{
+
+ static char *const argv2[] = { "perf_ats",
+ "-c",
+ "perf_ats.conf",
+ "-L", "WARNING",
+ NULL
+ };
+
+ ret = 1;
+
+ static struct GNUNET_GETOPT_CommandLineOption options[] = {
+ GNUNET_GETOPT_OPTION_END
+ };
+
+ GNUNET_PROGRAM_run ((sizeof (argv2) / sizeof (char *)) - 1, argv2,
+ "perf_ats", "nohelp", options,
+ &check, NULL);
+
+
+ return ret;
+}
+
+/* end of file perf_ats.c */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r28397 - gnunet/src/ats,
gnunet <=