mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-17 19:21:20 +03:00
* fix: TagNode.create with null content by default * Create five-meals-sing.md * fix: tests * fix(preset): types inference * fix: preset types * fix: preset types * fix: lock file, parser and utils * refactor: move types to separate package * fix(preset): add @bbob/core to dev deps * fix(preset): lock file * test(preset-vue): create tags * test(preset-vue): tests * chore(nx): fix nx cover deps * chore: changesets
This commit is contained in:
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
/* eslint-disable global-require */
|
||||
|
||||
const parser = require('@bbob/parser');
|
||||
const stub = require('./test/stub');
|
||||
|
||||
const passes = 100;
|
||||
const results = new Array(passes);
|
||||
const lexer = parser.createLexer;
|
||||
|
||||
// eslint-disable-next-line no-plusplus
|
||||
for (let i = 0; i < passes; i++) {
|
||||
results[i] = parser.parse(stub, {
|
||||
onlyAllowTags: ['ch'],
|
||||
createTokenizer: lexer,
|
||||
});
|
||||
}
|
||||
|
||||
console.log(results.length);
|
||||
Vendored
+3
-1
@@ -6,7 +6,8 @@
|
||||
"test": "test"
|
||||
},
|
||||
"scripts": {
|
||||
"start": "node index.js"
|
||||
"start": "node index.js",
|
||||
"cpupro": "node --require cpupro benchmark.js"
|
||||
},
|
||||
"author": {
|
||||
"name": "Nikolay Kostyurin <jilizart@gmail.com>",
|
||||
@@ -18,6 +19,7 @@
|
||||
"benchmark": "2.1.4",
|
||||
"picocolors": "1.0.0",
|
||||
"xbbcode-parser": "0.1.2",
|
||||
"cpupro": "*",
|
||||
"ya-bbcode": "1.0.12"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user