Skip to content

Commit 857fc67

Browse files
committed
Transfer project to V8.
- Update the license to the 3-BSD license used by the V8 project, and add notes for the external files in the resources folder. - Update the copyright to the V8 project authors. - Mention signing the CLA in the CONTRIBUTING.md document. - Rename resources to third_party. - Change URL to github.com/v8/web-tooling-benchmark
1 parent e208f9d commit 857fc67

Some content is hidden

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

63 files changed

+277
-890
lines changed

CONTRIBUTING.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Contributions are always welcome, no matter how large or small. Before
44
contributing, please read the
5-
[code of conduct](https://github.com/bmeurer/web-tooling-benchmark/blob/master/CODE_OF_CONDUCT.md).
5+
[code of conduct](https://github.com/v8/web-tooling-benchmark/blob/master/CODE_OF_CONDUCT.md).
66

77
## Setup locally
88

@@ -11,7 +11,7 @@ contributing, please read the
1111
To start developing on the Web Tooling Benchmark you only need to install its dependencies:
1212

1313
```bash
14-
git clone https://github.com/bmeurer/web-tooling-benchmark
14+
git clone https://github.com/v8/web-tooling-benchmark
1515
cd web-tooling-benchmark
1616
npm install
1717
```
@@ -28,12 +28,18 @@ There's no formal test suite yet. For now the process is roughly:
2828

2929
## Creating a new benchmark
3030

31-
> Example: https://github.com/bmeurer/web-tooling-benchmark/pull/10
32-
3331
- Create a new issue that describes the motivation for including the benchmark. Include any relevant information.
3432
- The pull request should include:
35-
- [ ] An update to the [in-depth.md](https://github.com/bmeurer/web-tooling-benchmark/blob/master/docs/in-depth.md) document. Add a new entry to that list for the new benchmark, which describes the tool and the concrete benchmark case.
36-
- [ ] Add a new file `src/foo-benchmark.js`, which includes the actual driver code for the benchmark (see the [`src/babylon-benchmark.js`](https://github.com/bmeurer/web-tooling-benchmark/blob/master/src/babylon-benchmark.js) for example).
33+
- [ ] An update to the [in-depth.md](https://github.com/v8/web-tooling-benchmark/blob/master/docs/in-depth.md) document. Add a new entry to that list for the new benchmark, which describes the tool and the concrete benchmark case.
34+
- [ ] Add a new file `src/foo-benchmark.js`, which includes the actual driver code for the benchmark (see the [`src/babylon-benchmark.js`](https://github.com/v8/web-tooling-benchmark/blob/master/src/babylon-benchmark.js) for example).
3735
- [ ] Add a new file `src/foo-benchmark.test.js`, which checks that the benchmark in `src/foo-benchmark.js` at least runs to completion.
3836
- [ ] `npm install --save-exact` any necessary dependencies, and be sure to include both the `package.json` and the `package-lock.json` changes in your pull request.
39-
- [ ] Put any assets used by the benchmark into the `resources` folder and hook them up with the virtual file system in `src/vfs.js`.
37+
- [ ] Put any assets used by the benchmark into the `third_party` folder and hook them up with the virtual file system in `src/vfs.js`.
38+
39+
## Sign the CLA
40+
41+
Before we can use your code you have to sign the [Google Individual Contributor License Agreement](https://cla.developers.google.com/about/google-individual), which you can do online. This is mainly because you own the copyright to your changes, even after your contribution becomes part of our codebase, so we need your permission to use and distribute your code. We also need to be sure of various other things, for instance that you’ll tell us if you know that your code infringes on other people’s patents. You don’t have to do this until after you’ve submitted your code for review and a member has approved it, but you will have to do it before we can put your code into our codebase.
42+
43+
Contributions made by corporations are covered by a different agreement than the one above, the [Software Grant and Corporate Contributor License Agreement](https://cla.developers.google.com/about/google-corporate).
44+
45+
Sign them online [here](https://cla.developers.google.com/).

LICENSE

Lines changed: 82 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,82 @@
1-
MIT License
2-
3-
Copyright (c) 2017 Benedikt Meurer
4-
5-
Permission is hereby granted, free of charge, to any person obtaining
6-
a copy of this software and associated documentation files (the
7-
"Software"), to deal in the Software without restriction, including
8-
without limitation the rights to use, copy, modify, merge, publish,
9-
distribute, sublicense, and/or sell copies of the Software, and to
10-
permit persons to whom the Software is furnished to do so, subject to
11-
the following conditions:
12-
13-
The above copyright notice and this permission notice shall be
14-
included in all copies or substantial portions of the Software.
15-
16-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1+
This license applies to all parts of web-tooling-benchmark that are not
2+
externally maintained libraries. The externally maintained libraries
3+
used by web-tooling-benchmark are:
4+
5+
- The Backbone.js distribution, located in third_party/backbone-1.1.0.js.
6+
This is copyrighted by Jeremy Ashkenas, DocumentCloud, and released
7+
under the terms of the MIT license.
8+
9+
- The lexer from the CoffeeScript project, located in
10+
third_party/coffeescript-lexer-2.0.1.coffee, which is copyrighted by
11+
Jeremy Ashkenas, and relased under the terms of the MIT license.
12+
13+
- The jQuery distribution, located in third_party/jquery-3.2.1.js. This
14+
is copyrighted by the JS Foundation and other contributors, and
15+
released under the terms of the MIT license.
16+
17+
- The Lodash distribution, located in third_party/lodash.core-4.17.4.js
18+
and third_party/lodash.min-4.17.4.js.map. This is copyrighted by
19+
the JS Foundation and other contributors, and released under the
20+
terms of the MIT license.
21+
22+
- The MooTools distribution, located in third_party/mootools-core-1.6.0.js.
23+
This is copyrighted by Valerio Proietti, and released under the
24+
terms of the MIT license.
25+
26+
- The Preact distribution, located in third_party/preact-8.2.5.js and
27+
third_party/preact-8.2.5.js.map. This is copyrighted by Jason Miller,
28+
and released under the terms of the MIT license.
29+
30+
- The Redux distribution, located in third_party/redux.min-3.7.2.js.
31+
This is copyrighted by Dan Abramov, and released under the terms
32+
of the MIT license.
33+
34+
- The source-map distribution, located in
35+
third_party/source-map.min-0.5.7.map. This is copyrighted by the
36+
Mozilla Foundation and contributors, and released under the terms
37+
of a 3-clause BSD license.
38+
39+
- Several tests from the TodoMVC distribution, located in
40+
third_party/speedometer-es2015-test-2.0.js and third_party/todomvc.
41+
These are copyrighted by Addy Osmani, Sindre Sorhus, Pascal
42+
Hartig, Stephen Sawchuk, and released under the terms of the
43+
MIT license.
44+
45+
- The Underscore.js distribution, located in
46+
third_party/underscore-1.8.3.js and
47+
third_party/underscore.min-1.8.3.js.map. This is copyrighted by
48+
Jeremy Ashkenas, and released under the terms of the MIT license.
49+
50+
- The VueJS distribution, located in
51+
third_party/vue.runtime.esm-nobuble-2.4.4.js. This is copyrighted
52+
Yuxi (Evan) You, and released under the terms of the MIT license.
53+
54+
These libraries have their own licenses; we recommend you read them,
55+
as their terms may differ from the terms below.
56+
57+
Copyright 2017, the V8 project authors. All rights reserved.
58+
Redistribution and use in source and binary forms, with or without
59+
modification, are permitted provided that the following conditions are
60+
met:
61+
62+
* Redistributions of source code must retain the above copyright
63+
notice, this list of conditions and the following disclaimer.
64+
* Redistributions in binary form must reproduce the above
65+
copyright notice, this list of conditions and the following
66+
disclaimer in the documentation and/or other materials provided
67+
with the distribution.
68+
* Neither the name of Google Inc. nor the names of its
69+
contributors may be used to endorse or promote products derived
70+
from this software without specific prior written permission.
71+
72+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
73+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
74+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
75+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
76+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
77+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
78+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
79+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
80+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
81+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
82+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
# Web Tooling Benchmark
22

3-
[![Build Status](https://travis-ci.org/bmeurer/web-tooling-benchmark.svg?branch=master)](https://travis-ci.org/bmeurer/web-tooling-benchmark) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
3+
[![Build Status](https://travis-ci.org/v8/web-tooling-benchmark.svg?branch=master)](https://travis-ci.org/v8/web-tooling-benchmark) [![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
44

55
This is work-in-progress benchmark suite that tries to measure the
66
JavaScript related workloads required by Web Developers nowadays.
77
It's the explicit goal not to measure I/O or other non-JavaScript
88
related tasks.
99

1010
See the [in-depth
11-
analysis](https://github.com/bmeurer/web-tooling-benchmark/blob/master/docs/in-depth.md)
11+
analysis](https://github.com/v8/web-tooling-benchmark/blob/master/docs/in-depth.md)
1212
for a detailed description of the tests included in this benchmark suite.
1313

1414
## Building

docs/in-depth.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ itself.
8282
the good parts of JavaScript in a simple way. At some point CoffeeScript was very
8383
popular.
8484

85-
This benchmark runs the CoffeeScript compiler on the [`lexer.coffee`](https://github.com/bmeurer/web-tooling-benchmark/blob/resources/coffeescript-lexer-2.0.1.coffee)
85+
This benchmark runs the CoffeeScript compiler on the [`lexer.coffee`](https://github.com/v8/web-tooling-benchmark/blob/third_party/coffeescript-lexer-2.0.1.coffee)
8686
file from the CoffeeScript 2.0.1 distribution.
8787

8888
## espree
@@ -170,4 +170,4 @@ the ES2015 test in the [Speedometer](https://browserbench.org/Speedometer)
170170
## uglify-es
171171

172172
This benchmark stresses the new ES2015 and beyond minifier using the 196KiB
173-
ES2015 module containing the untranspiled [Vue](https://github.com/vuejs/vue) bundle.
173+
ES2015 module containing the untranspiled [Vue](https://github.com/vuejs/vue) bundle.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "web-tooling-benchmark",
33
"description": "JavaScript Benchmark for common Web Developer workloads",
44
"version": "0.2.0",
5-
"repository": "https://github.com/bmeurer/web-tooling-benchmark",
5+
"repository": "https://github.com/v8/web-tooling-benchmark",
66
"main": "src/cli.js",
77
"scripts": {
88
"build:uglify-es-bundled": "./node_modules/uglify-es/bin/uglifyjs -b preamble=\"'const UglifyJS = module.exports = {};'\" --self > ./build/uglify-es-bundled.js",
@@ -31,7 +31,7 @@
3131
"email": "bmeurer@chromium.org",
3232
"url": "http://benediktmeurer.de"
3333
},
34-
"license": "MIT",
34+
"license": "BSD",
3535
"dependencies": {
3636
"acorn": "5.1.2",
3737
"babel-standalone": "7.0.0-beta.2",

src/acorn-benchmark.js

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
// Copyright (c) 2017 Benedikt Meurer
2-
//
3-
// Permission is hereby granted, free of charge, to any person obtaining
4-
// a copy of this software and associated documentation files (the
5-
// "Software"), to deal in the Software without restriction, including
6-
// without limitation the rights to use, copy, modify, merge, publish,
7-
// distribute, sublicense, and/or sell copies of the Software, and to
8-
// permit persons to whom the Software is furnished to do so, subject to
9-
// the following conditions:
10-
//
11-
// The above copyright notice and this permission notice shall be
12-
// included in all copies or substantial portions of the Software.
13-
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15-
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17-
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18-
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19-
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20-
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1+
// Copyright 2017 the V8 project authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
214

225
const acorn = require("acorn");
236
const fs = require("fs");
@@ -57,7 +40,7 @@ const payloads = [
5740
options: { ecmaVersion: 7, sourceType: "module" }
5841
}
5942
].map(({ name, options }) => ({
60-
payload: fs.readFileSync(`resources/${name}`, "utf8"),
43+
payload: fs.readFileSync(`third_party/${name}`, "utf8"),
6144
options: Object.assign(options, { locations: true }, { ranges: true })
6245
}));
6346

src/acorn-benchmark.test.js

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
// Copyright (c) 2017 Benedikt Meurer
2-
//
3-
// Permission is hereby granted, free of charge, to any person obtaining
4-
// a copy of this software and associated documentation files (the
5-
// "Software"), to deal in the Software without restriction, including
6-
// without limitation the rights to use, copy, modify, merge, publish,
7-
// distribute, sublicense, and/or sell copies of the Software, and to
8-
// permit persons to whom the Software is furnished to do so, subject to
9-
// the following conditions:
10-
//
11-
// The above copyright notice and this permission notice shall be
12-
// included in all copies or substantial portions of the Software.
13-
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15-
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17-
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18-
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19-
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20-
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1+
// Copyright 2017 the V8 project authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
214

225
const acornBenchmark = require("./acorn-benchmark");
236

src/babel-benchmark.js

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
// Copyright (c) 2017 Benedikt Meurer
2-
//
3-
// Permission is hereby granted, free of charge, to any person obtaining
4-
// a copy of this software and associated documentation files (the
5-
// "Software"), to deal in the Software without restriction, including
6-
// without limitation the rights to use, copy, modify, merge, publish,
7-
// distribute, sublicense, and/or sell copies of the Software, and to
8-
// permit persons to whom the Software is furnished to do so, subject to
9-
// the following conditions:
10-
//
11-
// The above copyright notice and this permission notice shall be
12-
// included in all copies or substantial portions of the Software.
13-
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15-
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17-
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18-
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19-
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20-
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1+
// Copyright 2017 the V8 project authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
214

225
const Babel = require("babel-standalone");
236
const babylon = require("babylon");
@@ -29,7 +12,7 @@ const payloads = [
2912
options: { presets: ["es2015"], sourceType: "module" }
3013
}
3114
].map(({ name, options }) => {
32-
const code = fs.readFileSync(`resources/${name}`, "utf8");
15+
const code = fs.readFileSync(`third_party/${name}`, "utf8");
3316
const ast = babylon.parse(code, options);
3417
return { ast, code, options };
3518
});

src/babel-benchmark.test.js

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
// Copyright (c) 2017 Benedikt Meurer
2-
//
3-
// Permission is hereby granted, free of charge, to any person obtaining
4-
// a copy of this software and associated documentation files (the
5-
// "Software"), to deal in the Software without restriction, including
6-
// without limitation the rights to use, copy, modify, merge, publish,
7-
// distribute, sublicense, and/or sell copies of the Software, and to
8-
// permit persons to whom the Software is furnished to do so, subject to
9-
// the following conditions:
10-
//
11-
// The above copyright notice and this permission notice shall be
12-
// included in all copies or substantial portions of the Software.
13-
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15-
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17-
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18-
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19-
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20-
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1+
// Copyright 2017 the V8 project authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
214

225
const babelBenchmark = require("./babel-benchmark");
236

src/babylon-benchmark.js

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
1-
// Copyright (c) 2017 Benedikt Meurer
2-
//
3-
// Permission is hereby granted, free of charge, to any person obtaining
4-
// a copy of this software and associated documentation files (the
5-
// "Software"), to deal in the Software without restriction, including
6-
// without limitation the rights to use, copy, modify, merge, publish,
7-
// distribute, sublicense, and/or sell copies of the Software, and to
8-
// permit persons to whom the Software is furnished to do so, subject to
9-
// the following conditions:
10-
//
11-
// The above copyright notice and this permission notice shall be
12-
// included in all copies or substantial portions of the Software.
13-
//
14-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15-
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17-
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18-
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19-
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20-
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1+
// Copyright 2017 the V8 project authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
214

225
const babylon = require("babylon");
236
const fs = require("fs");
@@ -64,7 +47,7 @@ const payloads = [
6447
options: { sourceType: "module" }
6548
}
6649
].map(({ name, options }) => ({
67-
payload: fs.readFileSync(`resources/${name}`, "utf8"),
50+
payload: fs.readFileSync(`third_party/${name}`, "utf8"),
6851
options
6952
}));
7053

0 commit comments

Comments
 (0)