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

Support JSON5 #12

Merged
merged 13 commits into from Mar 26, 2017
Merged

Support JSON5 #12

merged 13 commits into from Mar 26, 2017

Conversation

blond
Copy link
Contributor

@blond blond commented Mar 26, 2017

No description provided.

var path = require('path');

var nodeEval = require('node-eval');
var JSON5 = require('json5');
Copy link
Contributor

Choose a reason for hiding this comment

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

What is faster, vm.runInThisContext or JSON5.parse?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Run in 100000 files

Format Real time User Time Sys Time
CommonJS 4.237s 3.709s 1.359s
JSON 4.240s 3.724s 1.367s
JSON 5 4.444s 3.912s 1.401s

Copy link
Contributor

Choose a reason for hiding this comment

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

Ты воздух гонял, ты это знаешь?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

просвети )

@blond blond force-pushed the issue-11 branch 2 times, most recently from 6d4f4e9 to a94e410 Compare March 26, 2017 10:06
@blond blond merged commit d1fedeb into master Mar 26, 2017
@blond blond deleted the issue-11 branch March 26, 2017 10:50
@blond blond mentioned this pull request Mar 26, 2017
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.

None yet

4 participants