How Periodic_flush common setting helpful in ruby logstash filter?

I added periodic_flush => true in ruby filter but I didn't found any difference.

ruby {
   path => <ruby file path>
   periodic_flush => true

The periodic_flush option is defined in the base filter class which every filter inherits, so the option can be set on any filter, but has no effect on most of them.