Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add benchmarks #187

Closed
wants to merge 2 commits into from
Closed

Conversation

shreyasminocha
Copy link
Member

@shreyasminocha shreyasminocha commented Jan 18, 2019

Issue #31

@mihai-vlc mihai-vlc changed the title Add benchmarks [WIP] Add benchmarks Jan 19, 2019
@mihai-vlc
Copy link
Contributor

it might also be useful to create a section in the readme to explain how to run the benchmark and how to interpret the results

λ  node .\benchmark\run
╔═════════════════════╤═══════════╤═════════════╗
║ Description         │ Time      │ Uncertainty ║
╟─────────────────────┼───────────┼─────────────╢
║ VerEx  constructor  │ 962ns     │ ±1.18%      ║
║ RegExp constructor  │ 105ns     │ ±3.32%      ║
╟─────────────────────┼───────────┼─────────────╢
║ VerEx  startOfLine  │ 1µs 296ns │ ±1.62%      ║
║ RegExp startOfLine  │ 29ns      │ ±2.51%      ║
╟─────────────────────┼───────────┼─────────────╢
║ VerEx  endOfLine    │ 1µs 249ns │ ±0.49%      ║
║ RegExp endOfLine    │ 28ns      │ ±1.28%      ║
╟─────────────────────┼───────────┼─────────────╢
║ VerEx  then|find    │ 2µs 73ns  │ ±1.80%      ║
║ RegExp then|find    │ 18ns      │ ±1.62%      ║
╟─────────────────────┼───────────┼─────────────╢
║ VerEx  maybe        │ 2µs 83ns  │ ±1.07%      ║
║ RegExp maybe        │ 50ns      │ ±1.37%      ║
╟─────────────────────┼───────────┼─────────────╢
║ VerEx  anything     │ 1µs 261ns │ ±1.33%      ║
║ RegExp anything     │ 33ns      │ ±0.71%      ║
╟─────────────────────┼───────────┼─────────────╢
║ VerEx  anythingBut  │ 2µs 368ns │ ±0.48%      ║
║ RegExp anythingBut  │ 67ns      │ ±2.09%      ║
╟─────────────────────┼───────────┼─────────────╢
║ VerEx  something    │ 2µs 125ns │ ±1.28%      ║
║ RegExp something    │ 55ns      │ ±1.62%      ║
╟─────────────────────┼───────────┼─────────────╢
║ VerEx  somethingBut │ 2µs 229ns │ ±2.02%      ║
║ RegExp somethingBut │ 83ns      │ ±1.87%      ║
╚═════════════════════╧═══════════╧═════════════╝

@shreyasminocha shreyasminocha changed the title [WIP] Add benchmarks Add benchmarks Jan 29, 2019
@mihai-vlc
Copy link
Contributor

Can we fix the conflicts for package.json here ?

Copy link
Contributor

@mihai-vlc mihai-vlc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the conflicts are resolved, this is approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants