Skip to content

Instantly share code, notes, and snippets.

@saitoha
Created November 14, 2012 10:02
Show Gist options
  • Select an option

  • Save saitoha/4071312 to your computer and use it in GitHub Desktop.

Select an option

Save saitoha/4071312 to your computer and use it in GitHub Desktop.
> node wcwidth_test.js
test: 135027ms
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