Add a trivial source for tracking gst_init time accross versions.
authorStefan Kost <ensonic@users.sf.net>
Mon, 26 Jan 2009 15:14:07 +0000 (17:14 +0200)
committerStefan Kost <ensonic@users.sf.net>
Thu, 29 Jan 2009 15:46:52 +0000 (17:46 +0200)
tests/benchmarks/Makefile.am
tests/benchmarks/init.c [new file with mode: 0644]

index 8d840a3..d47ab83 100644 (file)
@@ -1,4 +1,10 @@
-noinst_PROGRAMS = caps mass-elements complexity gstpollstress
+noinst_PROGRAMS = \
+        caps \
+        complexity \
+        init \
+        mass-elements \
+        gstpollstress
 
 LDADD = $(GST_OBJ_LIBS)
 AM_CFLAGS = $(GST_OBJ_CFLAGS)
+
diff --git a/tests/benchmarks/init.c b/tests/benchmarks/init.c
new file mode 100644 (file)
index 0000000..a03f666
--- /dev/null
@@ -0,0 +1,31 @@
+/* GStreamer
+ * Copyright (C) 2006 Stefan Kost <stefan.kost@nokia.com>
+ *
+ * init.c: benchmark gst initialisation
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
+
+
+#include <gst/gst.h>
+
+gint
+main (gint argc, gchar * argv[])
+{
+  gst_init (&argc, &argv);
+
+  return 0;
+}