[Bug 794173] filesink pointlessly uses write/writev

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Aug 14 08:50:29 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=794173

--- Comment #12 from Sebastian Dröge (slomo) <slomo at coaxion.net> ---
With these patches on 2048 byte buffers (audiotestsrc ! filesink) I get:

- filesink to /dev/null with patch: 8.393s (average)
- filesink to /dev/null without patch: 8.508s (average)
- fakesink: 8.253s (average)

That is, a speedup of 1.8x ((8.508-8.253)/(8.393-8.253))

With the testcase above (fakesrc sizetype=2 sizemax=4 ! filesink) I get
(setting buffers to a higher number):

- filesink to /dev/null with patch: 10.12s (average)
- filesink to /dev/null without patch: 11.12s (average)
- fakesink: 6.80s (average)

That is, a speedup of 1.3x ((11.12-6.8)/(10.12-6.8))

Note that this is all /dev/null, with actual files it is worse. Numbers are
9.73s and 17.28s respectively, so 3.6x speedup with the patches.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list