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
Support JSON5 #12
Conversation
var path = require('path'); | ||
|
||
var nodeEval = require('node-eval'); | ||
var JSON5 = require('json5'); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ты воздух гонял, ты это знаешь?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
просвети )
6d4f4e9
to
a94e410
Compare
No description provided.