Skip to content

Commit a45d4f8

Browse files
jbergstroemrvagg
authored andcommitted
build: remove tools/wrk from the tree
wrk is an optional tool that some of the http benchmarks uses. The removal doesn't affect any users. Developers are assumed to install it before running the tests. This change reduces the tarball by 5% PR-URL: #982 Reviewed-By: Rod Vagg <[email protected]>
1 parent 555a7c4 commit a45d4f8

File tree

236 files changed

+10
-120516
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

236 files changed

+10
-120516
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@ deps/zlib/zlib.target.mk
7171
/*.tar.*
7272
/SHASUMS*.txt*
7373

74-
/tools/wrk/wrk
75-
7674
# test artifacts
7775
tools/faketime
7876
icu_config.gypi

LICENSE

-181
Original file line numberDiff line numberDiff line change
@@ -657,184 +657,3 @@ The externally maintained libraries used by io.js are:
657657
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
658658
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
659659
"""
660-
661-
- wrk is located at tools/wrk. wrk's license follows:
662-
"""
663-
664-
Apache License
665-
Version 2.0, January 2004
666-
http://www.apache.org/licenses/
667-
668-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
669-
670-
1. Definitions.
671-
672-
"License" shall mean the terms and conditions for use, reproduction,
673-
and distribution as defined by Sections 1 through 9 of this document.
674-
675-
"Licensor" shall mean the copyright owner or entity authorized by
676-
the copyright owner that is granting the License.
677-
678-
"Legal Entity" shall mean the union of the acting entity and all
679-
other entities that control, are controlled by, or are under common
680-
control with that entity. For the purposes of this definition,
681-
"control" means (i) the power, direct or indirect, to cause the
682-
direction or management of such entity, whether by contract or
683-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
684-
outstanding shares, or (iii) beneficial ownership of such entity.
685-
686-
"You" (or "Your") shall mean an individual or Legal Entity
687-
exercising permissions granted by this License.
688-
689-
"Source" form shall mean the preferred form for making modifications,
690-
including but not limited to software source code, documentation
691-
source, and configuration files.
692-
693-
"Object" form shall mean any form resulting from mechanical
694-
transformation or translation of a Source form, including but
695-
not limited to compiled object code, generated documentation,
696-
and conversions to other media types.
697-
698-
"Work" shall mean the work of authorship, whether in Source or
699-
Object form, made available under the License, as indicated by a
700-
copyright notice that is included in or attached to the work
701-
(an example is provided in the Appendix below).
702-
703-
"Derivative Works" shall mean any work, whether in Source or Object
704-
form, that is based on (or derived from) the Work and for which the
705-
editorial revisions, annotations, elaborations, or other modifications
706-
represent, as a whole, an original work of authorship. For the purposes
707-
of this License, Derivative Works shall not include works that remain
708-
separable from, or merely link (or bind by name) to the interfaces of,
709-
the Work and Derivative Works thereof.
710-
711-
"Contribution" shall mean any work of authorship, including
712-
the original version of the Work and any modifications or additions
713-
to that Work or Derivative Works thereof, that is intentionally
714-
submitted to Licensor for inclusion in the Work by the copyright owner
715-
or by an individual or Legal Entity authorized to submit on behalf of
716-
the copyright owner. For the purposes of this definition, "submitted"
717-
means any form of electronic, verbal, or written communication sent
718-
to the Licensor or its representatives, including but not limited to
719-
communication on electronic mailing lists, source code control systems,
720-
and issue tracking systems that are managed by, or on behalf of, the
721-
Licensor for the purpose of discussing and improving the Work, but
722-
excluding communication that is conspicuously marked or otherwise
723-
designated in writing by the copyright owner as "Not a Contribution."
724-
725-
"Contributor" shall mean Licensor and any individual or Legal Entity
726-
on behalf of whom a Contribution has been received by Licensor and
727-
subsequently incorporated within the Work.
728-
729-
2. Grant of Copyright License. Subject to the terms and conditions of
730-
this License, each Contributor hereby grants to You a perpetual,
731-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
732-
copyright license to reproduce, prepare Derivative Works of,
733-
publicly display, publicly perform, sublicense, and distribute the
734-
Work and such Derivative Works in Source or Object form.
735-
736-
3. Grant of Patent License. Subject to the terms and conditions of
737-
this License, each Contributor hereby grants to You a perpetual,
738-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
739-
(except as stated in this section) patent license to make, have made,
740-
use, offer to sell, sell, import, and otherwise transfer the Work,
741-
where such license applies only to those patent claims licensable
742-
by such Contributor that are necessarily infringed by their
743-
Contribution(s) alone or by combination of their Contribution(s)
744-
with the Work to which such Contribution(s) was submitted. If You
745-
institute patent litigation against any entity (including a
746-
cross-claim or counterclaim in a lawsuit) alleging that the Work
747-
or a Contribution incorporated within the Work constitutes direct
748-
or contributory patent infringement, then any patent licenses
749-
granted to You under this License for that Work shall terminate
750-
as of the date such litigation is filed.
751-
752-
4. Redistribution. You may reproduce and distribute copies of the
753-
Work or Derivative Works thereof in any medium, with or without
754-
modifications, and in Source or Object form, provided that You
755-
meet the following conditions:
756-
757-
(a) You must give any other recipients of the Work or
758-
Derivative Works a copy of this License; and
759-
760-
(b) You must cause any modified files to carry prominent notices
761-
stating that You changed the files; and
762-
763-
(c) You must retain, in the Source form of any Derivative Works
764-
that You distribute, all copyright, patent, trademark, and
765-
attribution notices from the Source form of the Work,
766-
excluding those notices that do not pertain to any part of
767-
the Derivative Works; and
768-
769-
(d) If the Work includes a "NOTICE" text file as part of its
770-
distribution, then any Derivative Works that You distribute must
771-
include a readable copy of the attribution notices contained
772-
within such NOTICE file, excluding those notices that do not
773-
pertain to any part of the Derivative Works, in at least one
774-
of the following places: within a NOTICE text file distributed
775-
as part of the Derivative Works; within the Source form or
776-
documentation, if provided along with the Derivative Works; or,
777-
within a display generated by the Derivative Works, if and
778-
wherever such third-party notices normally appear. The contents
779-
of the NOTICE file are for informational purposes only and
780-
do not modify the License. You may add Your own attribution
781-
notices within Derivative Works that You distribute, alongside
782-
or as an addendum to the NOTICE text from the Work, provided
783-
that such additional attribution notices cannot be construed
784-
as modifying the License.
785-
786-
You may add Your own copyright statement to Your modifications and
787-
may provide additional or different license terms and conditions
788-
for use, reproduction, or distribution of Your modifications, or
789-
for any such Derivative Works as a whole, provided Your use,
790-
reproduction, and distribution of the Work otherwise complies with
791-
the conditions stated in this License.
792-
793-
5. Submission of Contributions. Unless You explicitly state otherwise,
794-
any Contribution intentionally submitted for inclusion in the Work
795-
by You to the Licensor shall be under the terms and conditions of
796-
this License, without any additional terms or conditions.
797-
Notwithstanding the above, nothing herein shall supersede or modify
798-
the terms of any separate license agreement you may have executed
799-
with Licensor regarding such Contributions.
800-
801-
6. Trademarks. This License does not grant permission to use the trade
802-
names, trademarks, service marks, or product names of the Licensor,
803-
except as required for reasonable and customary use in describing the
804-
origin of the Work and reproducing the content of the NOTICE file.
805-
806-
7. Disclaimer of Warranty. Unless required by applicable law or
807-
agreed to in writing, Licensor provides the Work (and each
808-
Contributor provides its Contributions) on an "AS IS" BASIS,
809-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
810-
implied, including, without limitation, any warranties or conditions
811-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
812-
PARTICULAR PURPOSE. You are solely responsible for determining the
813-
appropriateness of using or redistributing the Work and assume any
814-
risks associated with Your exercise of permissions under this License.
815-
816-
8. Limitation of Liability. In no event and under no legal theory,
817-
whether in tort (including negligence), contract, or otherwise,
818-
unless required by applicable law (such as deliberate and grossly
819-
negligent acts) or agreed to in writing, shall any Contributor be
820-
liable to You for damages, including any direct, indirect, special,
821-
incidental, or consequential damages of any character arising as a
822-
result of this License or out of the use or inability to use the
823-
Work (including but not limited to damages for loss of goodwill,
824-
work stoppage, computer failure or malfunction, or any and all
825-
other commercial damages or losses), even if such Contributor
826-
has been advised of the possibility of such damages.
827-
828-
9. Accepting Warranty or Additional Liability. While redistributing
829-
the Work or Derivative Works thereof, You may choose to offer,
830-
and charge a fee for, acceptance of support, warranty, indemnity,
831-
or other liability obligations and/or rights consistent with this
832-
License. However, in accepting such obligations, You may act only
833-
on Your own behalf and on Your sole responsibility, not on behalf
834-
of any other Contributor, and only if You agree to indemnify,
835-
defend, and hold each Contributor harmless for any liability
836-
incurred by, or claims asserted against, such Contributor by reason
837-
of your accepting any such warranty or additional liability.
838-
839-
END OF TERMS AND CONDITIONS
840-
"""

Makefile

+7-8
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ test-message: test-build
121121
test-simple: all
122122
$(PYTHON) tools/test.py parallel sequential
123123

124-
test-pummel: all wrk
124+
test-pummel: all
125125
$(PYTHON) tools/test.py pummel
126126

127127
test-internet: all
@@ -328,13 +328,12 @@ $(PKGSRC): release-only
328328

329329
pkgsrc: $(PKGSRC)
330330

331-
wrkclean:
332-
$(MAKE) -C tools/wrk/ clean
333-
rm tools/wrk/wrk
334-
335-
wrk: tools/wrk/wrk
336-
tools/wrk/wrk:
337-
$(MAKE) -C tools/wrk/
331+
haswrk=$(shell which wrk > /dev/null 2>&1; echo $$?)
332+
wrk:
333+
ifneq ($(haswrk), 0)
334+
@echo "please install wrk before proceeding"; >&2
335+
@exit 1
336+
endif
338337

339338
bench-net: all
340339
@$(NODE) benchmark/common.js net

benchmark/README.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ io.js APIs.
55

66
## prerequisites
77

8-
Most of the http benchmarks require `wrk` to be compiled beforehand.
9-
10-
```sh
11-
make wrk
12-
```
8+
Most of the http benchmarks require `wrk` and `ab` being installed.
139

1410
## How to run tests
1511

benchmark/common.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,13 @@ function Benchmark(fn, options) {
7979
// benchmark an http server.
8080
Benchmark.prototype.http = function(p, args, cb) {
8181
var self = this;
82-
var wrk = path.resolve(__dirname, '..', 'tools', 'wrk', 'wrk');
8382
var regexp = /Requests\/sec:[ \t]+([0-9\.]+)/;
8483
var url = 'http://127.0.0.1:' + exports.PORT + p;
8584

8685
args = args.concat(url);
8786

8887
var out = '';
89-
var child = spawn(wrk, args);
88+
var child = spawn('wrk', args);
9089

9190
child.stdout.setEncoding('utf8');
9291

test/pummel/test-keep-alive.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,9 @@ function runAb(opts, callback) {
3939

4040
args.push(url.format({ hostname: '127.0.0.1', port: common.PORT, protocol: 'http'}));
4141

42-
var comm = path.join(__dirname, '..', '..', 'tools', 'wrk', 'wrk');
43-
4442
//console.log(comm, args.join(' '));
4543

46-
var child = spawn(comm, args);
44+
var child = spawn('wrk', args);
4745
child.stderr.pipe(process.stderr);
4846
child.stdout.setEncoding('utf8');
4947

tools/wrk/.gitignore

-14
This file was deleted.

0 commit comments

Comments
 (0)