UNPKG
ccap_noise
Version:
latest (0.0.4)
0.0.4
0.0.3
0.0.2
0.0.1
this is clone from ccap and modify for can control the noise
ccap_noise
/
benchmark
/
generate.js
14 lines
(10 loc)
•
290 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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'
)