Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
ad59905b
Commit
ad59905b
authored
Jun 12, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete useless file
parent
608897a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
81 deletions
+0
-81
proxy/node_modules/http-proxy/node_modules/eventemitter3/benchmarks/run/hundereds.js
...xy/node_modules/eventemitter3/benchmarks/run/hundereds.js
+0
-81
No files found.
proxy/node_modules/http-proxy/node_modules/eventemitter3/benchmarks/run/hundereds.js
deleted
100644 → 0
View file @
608897a5
'
use strict
'
;
/**
* Benchmark related modules.
*/
var
benchmark
=
require
(
'
benchmark
'
)
,
microtime
=
require
(
'
microtime
'
);
/**
* Logger
*/
var
logger
=
new
(
require
(
'
devnull
'
))({
timestamp
:
false
,
namespacing
:
0
});
/**
* Preparation code.
*/
var
EventEmitter2
=
require
(
'
eventemitter2
'
).
EventEmitter2
,
EventEmitter3
=
require
(
'
../../
'
).
EventEmitter
,
EventEmitter1
=
require
(
'
events
'
).
EventEmitter
;
function
foo
()
{
if
(
arguments
.
length
>
100
)
console
.
log
(
'
damn
'
);
return
1
;
}
/**
* Instances.
*/
var
ee2
=
new
EventEmitter2
()
,
ee3
=
new
EventEmitter3
()
,
ee1
=
new
EventEmitter1
()
,
j
,
i
;
for
(
i
=
0
;
i
<
10
;
i
++
)
{
for
(
j
=
0
;
j
<
10
;
j
++
)
{
ee1
.
on
(
'
event:
'
+
i
,
foo
);
}
}
for
(
i
=
0
;
i
<
10
;
i
++
)
{
for
(
j
=
0
;
j
<
10
;
j
++
)
{
ee2
.
on
(
'
event:
'
+
i
,
foo
);
}
}
for
(
i
=
0
;
i
<
10
;
i
++
)
{
for
(
j
=
0
;
j
<
10
;
j
++
)
{
ee3
.
on
(
'
event:
'
+
i
,
foo
);
}
}
(
new
benchmark
.
Suite
()
).
add
(
'
EventEmitter 1
'
,
function
test1
()
{
for
(
i
=
0
;
i
<
10
;
i
++
)
{
ee1
.
emit
(
'
event:
'
+
i
);
}
}).
add
(
'
EventEmitter 2
'
,
function
test2
()
{
for
(
i
=
0
;
i
<
10
;
i
++
)
{
ee2
.
emit
(
'
event:
'
+
i
);
}
}).
add
(
'
EventEmitter 3
'
,
function
test2
()
{
for
(
i
=
0
;
i
<
10
;
i
++
)
{
ee3
.
emit
(
'
event:
'
+
i
);
}
}).
on
(
'
cycle
'
,
function
cycle
(
e
)
{
var
details
=
e
.
target
;
logger
.
log
(
'
Finished benchmarking: "%s"
'
,
details
.
name
);
logger
.
metric
(
'
Count (%d), Cycles (%d), Elapsed (%d), Hz (%d)
'
,
details
.
count
,
details
.
cycles
,
details
.
times
.
elapsed
,
details
.
hz
);
}).
on
(
'
complete
'
,
function
completed
()
{
logger
.
info
(
'
Benchmark: "%s" is was the fastest.
'
,
this
.
filter
(
'
fastest
'
).
pluck
(
'
name
'
)
);
}).
run
();
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment