in my experiences, xfs is still faster than ext4.
in particular, if you are appending to a file.
especially with ext4, consider calling fallocate() to preallocate the size of the file you are appending to and keeping track of the offset yourself, i've seen that help performance immensely.