\starttext

\startluacode

    if jit then
        jit.on()
        jit.off()
    end

    local t = os.clock()
    local a = 0
    for i=1,10*1000*1000 do
        a = a + math.sin(i)
    end
    context(os.clock()-t)

    context.par()

    local t = os.clock()
    local sin = math.sin
    local a = 0
    for i=1,10*1000*1000 do
        a = a + sin(i)
    end
    context(os.clock()-t)

\stopluacode

\stoptext

