From dab725ee6951962b514d340fd0fb07f381f4849e Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 26 Jan 2009 17:14:07 +0200 Subject: [PATCH] Add a trivial source for tracking gst_init time accross versions. --- tests/benchmarks/Makefile.am | 8 +++++++- tests/benchmarks/init.c | 31 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 tests/benchmarks/init.c diff --git a/tests/benchmarks/Makefile.am b/tests/benchmarks/Makefile.am index 8d840a3..d47ab83 100644 --- a/tests/benchmarks/Makefile.am +++ b/tests/benchmarks/Makefile.am @@ -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 index 0000000..a03f666 --- /dev/null +++ b/tests/benchmarks/init.c @@ -0,0 +1,31 @@ +/* GStreamer + * Copyright (C) 2006 Stefan Kost + * + * 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 + +gint +main (gint argc, gchar * argv[]) +{ + gst_init (&argc, &argv); + + return 0; +} -- 2.7.4