函数定义的方式有差别吗

local func = function()
local a = 1
end

local function func()
local a = 1
end

这两个在效率性能上有差别吗,哪个好一点,我测试了一下,花的时间差不多,但是为什么弄两种一样的方式