Skip to content

[Feature Request] - Create benchmark for RegExp manipulation #429

Description

@jasonwilliams

In order to test the upcoming optimisation work we're doing around objects it would be good to have a benchmark for various objects and manipulating them.

In future we may change our underlying RegExp dependency, so it would be good to see what the effects are.

Example

Benchmarks live here
an array creation and access would be categorised under exec.

If exec benchmarks become too big we can compartmentalise them later on.

You can see the fibonacci benchmark here:
https://github.com/boa-dev/boa/blob/master/boa/benches/exec.rs#L49-L66

2 benchmarks could be made, 1 for using a RegExp object, another for creating one.
We could introduce more benchmarks here for various methods commonly used on RegExp objects.

in order to run the benchmarks you can run cargo bench in the root folder

Contributing

https://github.com/boa-dev/boa/blob/master/CONTRIBUTING.md
https://github.com/boa-dev/boa/blob/master/docs/debugging.md

Activity

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

Metadata

Metadata

Assignees

Labels

C-BenchmarkIssues and PRs related to the benchmark subsystem.E-EasyEasy difficulty problemGood First IssueGood for newcomers

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions