Ruby Filter : difference between init option and path option in terms of performance

Hello All,

while I am reading on Ruby filter plugin, I found that the "init" option is used to execute any code at startup time.

so, is there any 'performance' difference between path option and init option used like the 2 examples below:

using path option:

filter {
    ruby {
          path=> "set_data_1.rb"
      }
      ruby {
          path=> "set_data_2.rb"
      }
}

using init option

filter {
    ruby {
        # utils.rb contains the methods set_data_1 and set_data_2
        # so they can be used directly in later ruby filters
        init => "require Dir.pwd + '/utils.rb'"
        code => "puts ''"
    }
   ruby {
       code => "
         set_data_1(event)
         set_data_2(event)
        "
   }
}

Thanks