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

Improve code performance #3

Open
ramyaragupathy opened this issue Feb 19, 2018 · 0 comments
Open

Improve code performance #3

ramyaragupathy opened this issue Feb 19, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ramyaragupathy
Copy link
Owner

ramyaragupathy commented Feb 19, 2018

Performance now:

File Ramya's parser JSON.parse Gap
twitter.json 4.869ms 0.249ms 19 times
facebook.json 26.584ms 1.815ms 14 times
openstreetmap.json 145.779ms 17.619ms 8 times
package.json 1.485ms 0.155ms 9 times
rap.json 24.396ms 0.646ms 37 times
caliper.json 23.766ms 0.776ms 30 times

String and number values perform better because there's no string slicing. Need to modify array parser & object parser to iterate over index

@ramyaragupathy ramyaragupathy added the enhancement New feature or request label Feb 19, 2018
@ramyaragupathy ramyaragupathy self-assigned this Feb 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant