chore: test convert md 2 demo speed

This commit is contained in:
07akioni 2019-09-18 00:02:57 +08:00
parent 17572949c2
commit a1401287ff

View File

@ -131,4 +131,10 @@ function convertMd2Demo (text) {
}
module.exports = convertMd2Demo
convertMd2Demo(fs.readFileSync('./marked/basic.md').toString())
// const startTime = new Date()
// for (let i = 0; i < 100; ++i) {
// const md = fs.readFileSync('./marked/basic.md').toString()
// convertMd2Demo(md)
// }
// const endTime = new Date()
// console.log(endTime - startTime)