Skip to content

performance #15

Description

@bjne

Trying 1M iterations on a relatively complex lpeg.re pattern, these are the results:

$ time luajit test_lpeglj.lua|wc -l
1000000

real    0m49.544s
user    0m49.509s
sys     0m0.540s

$ time luajit test_lulpeg.lua|wc -l
1000000

real    0m18.219s
user    0m18.192s
sys     0m0.492s

$ time luajit test_lpeg.lua|wc -l
1000000

real    0m3.004s
user    0m3.022s
sys     0m0.143s

$ luajit -v
LuaJIT 2.1.0-beta3 -- Copyright (C) 2005-2020 Mike Pall. https://luajit.org/

is this expected?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions