"Fossies" - the Fresh Open Source Software Archive

Member "wrk-4.2.0/scripts/delay.lua" (7 Feb 2021, 141 Bytes) of package /linux/www/wrk-4.2.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lua source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 -- example script that demonstrates adding a random
    2 -- 10-50ms delay before each request
    3 
    4 function delay()
    5    return math.random(10, 50)
    6 end