Skip to content

Octane regexp.js does not complete with the right check sum. #7

@nbp

Description

@nbp

I was trying to look at the performance of this library, by running the octane regexp benchmark.

After doing some modification[1] to the benchmark, such as it use the RegExp constructor instead of the literal RegExp notation. I noticed that at least the first 2 regexps which are involving \s are not working as expected and find more matches than YARR.

[1] sed -ie '
s~= /([^"])/([ig]);= new RegExp("\1", "\2"); ;
sExec(/([^"])/([ig]), Exec(new RegExp("\1", "\2"), ~ ;
T; :b;
s
new RegExp("([^"]*)~new RegExp("\1.backslash.
;
t b; s~.backslash.~\~g' regexp.js

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