UNPKG

jimi_ccap

Version:

node.js generate captcha using c++ library CImg without install any other lib or software

14 lines (10 loc) 277 B
var ccap = require('../')(); var nows = Date.now(); var count = 0; var interval = 1000*60*2; while(Date.now() - nows < interval){ var array = ccap.get(); count++; } var ends = Date.now(); console.log('Generate captcha speed is : '+Math.floor(count/(ends - nows))+'/sec')