Created
November 14, 2012 10:02
-
-
Save saitoha/4071312 to your computer and use it in GitHub Desktop.
wcwidth.js (https://npmjs.org/package/wcwidth.js) test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| > node wcwidth_test.js | |
| test: 135027ms |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var wcwidth = require('wcwidth.js'); | |
| var ww = wcwidth(); | |
| console.time("test") | |
| for (var n = 0; n < 1000; n++) | |
| for (var i = 0; i < 0x10000; i++) | |
| ww(i) | |
| console.timeEnd("test") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment