Figure 10 summarizes the results for insert operations per second when ingesting the data into the database. The numbers indicate that using software compression imposes a certain amount of overhead as the data needs to go through additional processing. The amount of overhead varies depending on the compression algorithms used. For better insert performance, turn off compression or use the default snappy compression in MongoDB. The zstd or zlib, which compresses better than the snappy algorithm, have slower insert performance.
Note: The insert ops/sec numbers provided are intended to show the impact of using different compression in the context of data reduction. This allows us to compare the relative effects to each compression algorithm. They are not meant to be the indicator of the absolute best performance numbers.