benchmark: fix complexity benchmark

Make complexity benchmark code work for complexity > 1

https://bugzilla.gnome.org/show_bug.cgi?id=784754
This commit is contained in:
Francisco Velazquez 2017-07-10 16:52:38 +02:00 committed by Tim-Philipp Müller
parent d123291183
commit 542b173d34
2 changed files with 5 additions and 4 deletions

View file

@ -35,7 +35,7 @@ main (gint argc, gchar * argv[])
gst_init (&argc, &argv);
if (argc != 3) {
g_print ("usage: %s COMPLEXITY_ORDER N_ELEMENTS\n", argv[0]);
g_print ("Usage: %s COMPLEXITY_ORDER N_ELEMENTS\n", argv[0]);
return 1;
}
@ -76,7 +76,7 @@ main (gint argc, gchar * argv[])
e = gst_element_factory_make ("tee", NULL);
} else {
e = gst_element_factory_make ("fakesink", NULL);
g_object_set (e, "preroll-queue-len", 1, NULL);
g_object_set (e, "async", FALSE, NULL);
}
g_object_set (e, "silent", TRUE, NULL);
new_src_list = g_slist_prepend (new_src_list, e);

View file

@ -20,12 +20,13 @@ exec guile -s $0 "$@"
;; Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
;; Quick hack to make some data files that gnuplot can read from
;; complexity. Guile 1.6.
;; complexity. Guile 1.8.
(use-modules (srfi srfi-13)
(srfi srfi-1)
(ice-9 optargs)
(ice-9 popen))
(ice-9 popen)
(ice-9 rdelim))
(define *phases* '(create set run destroy))