Skip to content

Commit

Permalink
Add performance test.
Browse files Browse the repository at this point in the history
  • Loading branch information
samccone committed Apr 9, 2021
1 parent a95c285 commit be99c23
Show file tree
Hide file tree
Showing 2 changed files with 6,558 additions and 0 deletions.
11 changes: 11 additions & 0 deletions perf/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const fs = require('fs');
const path = require('path');
const unesc = require('../dist/util/unesc');
const selectors = fs.readFileSync(path.join(__dirname, 'selectors.css'), 'utf-8').split('\n');

for (let i = 0; i < 100; i++) {
for (let s of selectors) {
unesc(s);
}
}

Loading

0 comments on commit be99c23

Please sign in to comment.