Skip to content

Commit

Permalink
test: script to generate pinyin input for performance test
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Feb 8, 2019
1 parent 7528fec commit c7cb47e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/generate_pinyin_initials.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const initials = 'bpmfdtnlgkhjqxzcsryw';
const len = Number(process.argv[2]);
let t = [];
for (let i = 0; i < len; ++i) {
t.push(initials.charAt(Math.floor(Math.random() * initials.length)));
}
console.log(t.join(''));

0 comments on commit c7cb47e

Please sign in to comment.