diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 321bbfc6..990716a0 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ Contributions are always welcome, no matter how large or small. Before contributing, please read the -[code of conduct](https://github.com/bmeurer/web-tooling-benchmark/blob/master/CODE_OF_CONDUCT.md). +[code of conduct](https://github.com/v8/web-tooling-benchmark/blob/master/CODE_OF_CONDUCT.md). ## Setup locally @@ -11,7 +11,7 @@ contributing, please read the To start developing on the Web Tooling Benchmark you only need to install its dependencies: ```bash -git clone https://github.com/bmeurer/web-tooling-benchmark +git clone https://github.com/v8/web-tooling-benchmark cd web-tooling-benchmark npm install ``` @@ -28,12 +28,18 @@ There's no formal test suite yet. For now the process is roughly: ## Creating a new benchmark -> Example: https://github.com/bmeurer/web-tooling-benchmark/pull/10 - - Create a new issue that describes the motivation for including the benchmark. Include any relevant information. - The pull request should include: - - [ ] 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. - - [ ] 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). + - [ ] 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. + - [ ] 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). - [ ] Add a new file `src/foo-benchmark.test.js`, which checks that the benchmark in `src/foo-benchmark.js` at least runs to completion. - [ ] `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. - - [ ] Put any assets used by the benchmark into the `resources` folder and hook them up with the virtual file system in `src/vfs.js`. + - [ ] 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`. + +## Sign the CLA + +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. + +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). + +Sign them online [here](https://cla.developers.google.com/). diff --git a/LICENSE b/LICENSE index daa1975b..6bb689a0 100644 --- a/LICENSE +++ b/LICENSE @@ -1,22 +1,82 @@ -MIT License - -Copyright (c) 2017 Benedikt Meurer - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +This license applies to all parts of web-tooling-benchmark that are not +externally maintained libraries. The externally maintained libraries +used by web-tooling-benchmark are: + + - The Backbone.js distribution, located in third_party/backbone-1.1.0.js. + This is copyrighted by Jeremy Ashkenas, DocumentCloud, and released + under the terms of the MIT license. + + - The lexer from the CoffeeScript project, located in + third_party/coffeescript-lexer-2.0.1.coffee, which is copyrighted by + Jeremy Ashkenas, and relased under the terms of the MIT license. + + - The jQuery distribution, located in third_party/jquery-3.2.1.js. This + is copyrighted by the JS Foundation and other contributors, and + released under the terms of the MIT license. + + - The Lodash distribution, located in third_party/lodash.core-4.17.4.js + and third_party/lodash.min-4.17.4.js.map. This is copyrighted by + the JS Foundation and other contributors, and released under the + terms of the MIT license. + + - The MooTools distribution, located in third_party/mootools-core-1.6.0.js. + This is copyrighted by Valerio Proietti, and released under the + terms of the MIT license. + + - The Preact distribution, located in third_party/preact-8.2.5.js and + third_party/preact-8.2.5.js.map. This is copyrighted by Jason Miller, + and released under the terms of the MIT license. + + - The Redux distribution, located in third_party/redux.min-3.7.2.js. + This is copyrighted by Dan Abramov, and released under the terms + of the MIT license. + + - The source-map distribution, located in + third_party/source-map.min-0.5.7.map. This is copyrighted by the + Mozilla Foundation and contributors, and released under the terms + of a 3-clause BSD license. + + - Several tests from the TodoMVC distribution, located in + third_party/speedometer-es2015-test-2.0.js and third_party/todomvc. + These are copyrighted by Addy Osmani, Sindre Sorhus, Pascal + Hartig, Stephen Sawchuk, and released under the terms of the + MIT license. + + - The Underscore.js distribution, located in + third_party/underscore-1.8.3.js and + third_party/underscore.min-1.8.3.js.map. This is copyrighted by + Jeremy Ashkenas, and released under the terms of the MIT license. + + - The VueJS distribution, located in + third_party/vue.runtime.esm-nobuble-2.4.4.js. This is copyrighted + Yuxi (Evan) You, and released under the terms of the MIT license. + +These libraries have their own licenses; we recommend you read them, +as their terms may differ from the terms below. + +Copyright 2017, the V8 project authors. All rights reserved. +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above + copyright notice, this list of conditions and the following + disclaimer in the documentation and/or other materials provided + with the distribution. + * Neither the name of Google Inc. nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/README.md b/README.md index 9b2dc7d5..d994b7c3 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Web Tooling Benchmark -[![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) +[![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) This is work-in-progress benchmark suite that tries to measure the JavaScript related workloads required by Web Developers nowadays. @@ -8,7 +8,7 @@ It's the explicit goal not to measure I/O or other non-JavaScript related tasks. See the [in-depth -analysis](https://github.com/bmeurer/web-tooling-benchmark/blob/master/docs/in-depth.md) +analysis](https://github.com/v8/web-tooling-benchmark/blob/master/docs/in-depth.md) for a detailed description of the tests included in this benchmark suite. ## Building diff --git a/docs/in-depth.md b/docs/in-depth.md index 352ded48..d713d01d 100644 --- a/docs/in-depth.md +++ b/docs/in-depth.md @@ -82,7 +82,7 @@ itself. the good parts of JavaScript in a simple way. At some point CoffeeScript was very popular. -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) +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) file from the CoffeeScript 2.0.1 distribution. ## espree @@ -170,4 +170,4 @@ the ES2015 test in the [Speedometer](https://browserbench.org/Speedometer) ## uglify-es This benchmark stresses the new ES2015 and beyond minifier using the 196KiB -ES2015 module containing the untranspiled [Vue](https://github.com/vuejs/vue) bundle. \ No newline at end of file +ES2015 module containing the untranspiled [Vue](https://github.com/vuejs/vue) bundle. diff --git a/package.json b/package.json index fc760182..2a0da86a 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "web-tooling-benchmark", "description": "JavaScript Benchmark for common Web Developer workloads", "version": "0.2.0", - "repository": "https://github.com/bmeurer/web-tooling-benchmark", + "repository": "https://github.com/v8/web-tooling-benchmark", "main": "src/cli.js", "scripts": { "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 @@ "email": "bmeurer@chromium.org", "url": "http://benediktmeurer.de" }, - "license": "MIT", + "license": "BSD", "dependencies": { "acorn": "5.1.2", "babel-standalone": "7.0.0-beta.2", diff --git a/src/acorn-benchmark.js b/src/acorn-benchmark.js index 8a338edc..2eec02eb 100644 --- a/src/acorn-benchmark.js +++ b/src/acorn-benchmark.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const acorn = require("acorn"); const fs = require("fs"); @@ -57,7 +40,7 @@ const payloads = [ options: { ecmaVersion: 7, sourceType: "module" } } ].map(({ name, options }) => ({ - payload: fs.readFileSync(`resources/${name}`, "utf8"), + payload: fs.readFileSync(`third_party/${name}`, "utf8"), options: Object.assign(options, { locations: true }, { ranges: true }) })); diff --git a/src/acorn-benchmark.test.js b/src/acorn-benchmark.test.js index 811e8cb2..f1bf0931 100644 --- a/src/acorn-benchmark.test.js +++ b/src/acorn-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const acornBenchmark = require("./acorn-benchmark"); diff --git a/src/babel-benchmark.js b/src/babel-benchmark.js index a9d7dca8..59e7a7fb 100644 --- a/src/babel-benchmark.js +++ b/src/babel-benchmark.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const Babel = require("babel-standalone"); const babylon = require("babylon"); @@ -29,7 +12,7 @@ const payloads = [ options: { presets: ["es2015"], sourceType: "module" } } ].map(({ name, options }) => { - const code = fs.readFileSync(`resources/${name}`, "utf8"); + const code = fs.readFileSync(`third_party/${name}`, "utf8"); const ast = babylon.parse(code, options); return { ast, code, options }; }); diff --git a/src/babel-benchmark.test.js b/src/babel-benchmark.test.js index 50a59559..bf075917 100644 --- a/src/babel-benchmark.test.js +++ b/src/babel-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const babelBenchmark = require("./babel-benchmark"); diff --git a/src/babylon-benchmark.js b/src/babylon-benchmark.js index 0fc7c279..af369c43 100644 --- a/src/babylon-benchmark.js +++ b/src/babylon-benchmark.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const babylon = require("babylon"); const fs = require("fs"); @@ -64,7 +47,7 @@ const payloads = [ options: { sourceType: "module" } } ].map(({ name, options }) => ({ - payload: fs.readFileSync(`resources/${name}`, "utf8"), + payload: fs.readFileSync(`third_party/${name}`, "utf8"), options })); diff --git a/src/babylon-benchmark.test.js b/src/babylon-benchmark.test.js index 3fd0533e..1baa9549 100644 --- a/src/babylon-benchmark.test.js +++ b/src/babylon-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const babylonBenchmark = require("./babylon-benchmark"); diff --git a/src/bootstrap.js b/src/bootstrap.js index 0dbaa1bf..d761a20e 100644 --- a/src/bootstrap.js +++ b/src/bootstrap.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const gmean = require("compute-gmean"); const package = require("../package.json"); @@ -63,7 +46,7 @@ function reset() { } else { const benchmark = benchmarks[index]; text += ``; - text += `${benchmark.name}`; + text += `${benchmark.name}`; text += `—`; } } diff --git a/src/buble-benchmark.js b/src/buble-benchmark.js index d69e1dc9..da44955b 100644 --- a/src/buble-benchmark.js +++ b/src/buble-benchmark.js @@ -1,22 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const buble = require("buble"); const fs = require("fs"); @@ -27,7 +11,7 @@ const payloads = [ options: {} } ].map(({ name, options }) => ({ - payload: fs.readFileSync(`resources/${name}`, "utf8"), + payload: fs.readFileSync(`third_party/${name}`, "utf8"), options: { transforms: { modules: false } } })); diff --git a/src/buble-benchmark.test.js b/src/buble-benchmark.test.js index 7ece8074..77d9cb1e 100644 --- a/src/buble-benchmark.test.js +++ b/src/buble-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const bubleBenchmark = require("./buble-benchmark"); diff --git a/src/chai-benchmark.js b/src/chai-benchmark.js index 95a6fe64..606b8413 100644 --- a/src/chai-benchmark.js +++ b/src/chai-benchmark.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. "use strict"; diff --git a/src/chai-benchmark.test.js b/src/chai-benchmark.test.js index 2dfc0487..a37eb594 100644 --- a/src/chai-benchmark.test.js +++ b/src/chai-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const chaiBenchmark = require("./chai-benchmark"); diff --git a/src/cli.js b/src/cli.js index d3c5ec8d..07baf5a9 100644 --- a/src/cli.js +++ b/src/cli.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const align = require("string-align"); const gmean = require("compute-gmean"); diff --git a/src/coffeescript-benchmark.js b/src/coffeescript-benchmark.js index f062a192..c421706c 100644 --- a/src/coffeescript-benchmark.js +++ b/src/coffeescript-benchmark.js @@ -1,29 +1,12 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const CoffeeScript = require("coffeescript"); const fs = require("fs"); const input = fs.readFileSync( - "resources/coffeescript-lexer-2.0.1.coffee", + "third_party/coffeescript-lexer-2.0.1.coffee", "utf8" ); diff --git a/src/coffeescript-benchmark.test.js b/src/coffeescript-benchmark.test.js index 11eb3f63..aea75eb7 100644 --- a/src/coffeescript-benchmark.test.js +++ b/src/coffeescript-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const coffeescriptBenchmark = require("./coffeescript-benchmark"); diff --git a/src/espree-benchmark.js b/src/espree-benchmark.js index 8bd714a3..3d37ece6 100644 --- a/src/espree-benchmark.js +++ b/src/espree-benchmark.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const espree = require("espree"); const fs = require("fs"); @@ -27,7 +10,7 @@ const payloads = [ "jquery-3.2.1.js", "mootools-core-1.6.0.js", "underscore-1.8.3.js" -].map(name => fs.readFileSync(`resources/${name}`, "utf8")); +].map(name => fs.readFileSync(`third_party/${name}`, "utf8")); module.exports = { name: "espree", diff --git a/src/espree-benchmark.test.js b/src/espree-benchmark.test.js index c58c82ff..757093de 100644 --- a/src/espree-benchmark.test.js +++ b/src/espree-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const espreeBenchmark = require("./espree-benchmark"); diff --git a/src/esprima-benchmark.js b/src/esprima-benchmark.js index d0148582..6b565d68 100644 --- a/src/esprima-benchmark.js +++ b/src/esprima-benchmark.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const esprima = require("esprima"); const fs = require("fs"); @@ -27,7 +10,7 @@ const payloads = [ "jquery-3.2.1.js", "mootools-core-1.6.0.js", "underscore-1.8.3.js" -].map(name => fs.readFileSync(`resources/${name}`, "utf8")); +].map(name => fs.readFileSync(`third_party/${name}`, "utf8")); module.exports = { name: "esprima", diff --git a/src/esprima-benchmark.test.js b/src/esprima-benchmark.test.js index 1075d764..d33fbc7d 100644 --- a/src/esprima-benchmark.test.js +++ b/src/esprima-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const esprimaBenchmark = require("./esprima-benchmark"); diff --git a/src/index.html b/src/index.html index c7150d70..4ccf8939 100644 --- a/src/index.html +++ b/src/index.html @@ -1,24 +1,7 @@ @@ -32,12 +15,12 @@
- +

The Web Tooling Benchmark is a performance test suite focused on JavaScript related workloads found in common web developer tools these days. For more information, read the - in-depth + in-depth analysis. Bigger scores are better.

diff --git a/src/jshint-benchmark.js b/src/jshint-benchmark.js index 51208b26..6098bb92 100644 --- a/src/jshint-benchmark.js +++ b/src/jshint-benchmark.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const fs = require("fs"); const jshint = require("jshint"); @@ -26,7 +9,7 @@ const inputs = [ "lodash.core-4.17.4.js", "preact-8.2.5.js", "underscore-1.8.3.js" -].map(name => fs.readFileSync(`resources/${name}`, "utf8")); +].map(name => fs.readFileSync(`third_party/${name}`, "utf8")); module.exports = { name: "jshint", diff --git a/src/jshint-benchmark.test.js b/src/jshint-benchmark.test.js index d282bf07..ea153821 100644 --- a/src/jshint-benchmark.test.js +++ b/src/jshint-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const jshintBenchmark = require("./jshint-benchmark"); diff --git a/src/lebab-benchmark.js b/src/lebab-benchmark.js index 5b3a9cbd..d7b0c1bc 100644 --- a/src/lebab-benchmark.js +++ b/src/lebab-benchmark.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const fs = require("fs"); const lebab = require("lebab"); @@ -39,7 +22,7 @@ const payloads = [ ] } ].map(({ name, options }) => ({ - payload: fs.readFileSync(`resources/${name}`, "utf8"), + payload: fs.readFileSync(`third_party/${name}`, "utf8"), options })); diff --git a/src/lebab-benchmark.test.js b/src/lebab-benchmark.test.js index 81262bf8..2b2cf9f6 100644 --- a/src/lebab-benchmark.test.js +++ b/src/lebab-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const lebabBenchmark = require("./lebab-benchmark"); diff --git a/src/mocks/dummy.js b/src/mocks/dummy.js index 6b9f898e..9b9d995c 100644 --- a/src/mocks/dummy.js +++ b/src/mocks/dummy.js @@ -1,22 +1,5 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. module.exports = {}; diff --git a/src/prepack-benchmark.js b/src/prepack-benchmark.js index 85000ba3..73960161 100644 --- a/src/prepack-benchmark.js +++ b/src/prepack-benchmark.js @@ -1,30 +1,13 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const fs = require("fs"); const prepack = require("prepack"); const sourceFiles = [ - "resources/preact-8.2.5.js", - "resources/redux.min-3.7.2.js" + "third_party/preact-8.2.5.js", + "third_party/redux.min-3.7.2.js" ].map(filePath => ({ filePath, fileContents: fs.readFileSync(filePath, "utf8") diff --git a/src/prepack-benchmark.test.js b/src/prepack-benchmark.test.js index 8e6097e6..c1445680 100644 --- a/src/prepack-benchmark.test.js +++ b/src/prepack-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const prepackBenchmark = require("./prepack-benchmark"); diff --git a/src/prettier-benchmark.js b/src/prettier-benchmark.js index ebe9ceaf..cd4e0fb0 100644 --- a/src/prettier-benchmark.js +++ b/src/prettier-benchmark.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const fs = require("fs"); const prettier = require("prettier"); @@ -44,7 +27,7 @@ const payloads = [ options: { semi: false, singleQuote: true, useTabs: true } } ].map(({ name, options }) => ({ - payload: fs.readFileSync(`resources/${name}`, "utf8"), + payload: fs.readFileSync(`third_party/${name}`, "utf8"), options })); diff --git a/src/prettier-benchmark.test.js b/src/prettier-benchmark.test.js index 2092226f..e8839f3d 100644 --- a/src/prettier-benchmark.test.js +++ b/src/prettier-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const prettierBenchmark = require("./prettier-benchmark"); diff --git a/src/source-map-benchmark.js b/src/source-map-benchmark.js index b86c0bc6..e5b31605 100644 --- a/src/source-map-benchmark.js +++ b/src/source-map-benchmark.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const sourceMap = require("source-map"); const fs = require("fs"); @@ -27,7 +10,7 @@ const payloads = [ "preact-8.2.5.js.map", "source-map.min-0.5.7.js.map", "underscore.min-1.8.3.js.map" -].map(name => fs.readFileSync(`resources/${name}`, "utf8")); +].map(name => fs.readFileSync(`third_party/${name}`, "utf8")); module.exports = { name: "source-map", diff --git a/src/source-map-benchmark.test.js b/src/source-map-benchmark.test.js index d31e5d10..ea64b8f8 100644 --- a/src/source-map-benchmark.test.js +++ b/src/source-map-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const sourceMapBenchmark = require("./source-map-benchmark"); diff --git a/src/style.css b/src/style.css index f5d18c16..2de3265c 100644 --- a/src/style.css +++ b/src/style.css @@ -1,24 +1,7 @@ /*- - * Copyright (c) 2017 Benedikt Meurer - * - * Permission is hereby granted, free of charge, to any person obtaining - * a copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sublicense, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND - * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE - * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION - * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION - * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * Copyright 2017 the V8 project authors. All rights reserved. + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. */ body { diff --git a/src/suite.js b/src/suite.js index 5a31b796..ab00cf28 100644 --- a/src/suite.js +++ b/src/suite.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const Benchmark = require("benchmark"); diff --git a/src/typescript-benchmark.js b/src/typescript-benchmark.js index fb4678a6..691ebb17 100644 --- a/src/typescript-benchmark.js +++ b/src/typescript-benchmark.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const fs = require("fs"); const ts = require("typescript"); @@ -44,7 +27,7 @@ const payloads = [ } } ].map(({ name, transpileOptions }) => ({ - input: fs.readFileSync(`resources/${name}`, "utf8"), + input: fs.readFileSync(`third_party/${name}`, "utf8"), transpileOptions })); diff --git a/src/typescript-benchmark.test.js b/src/typescript-benchmark.test.js index 52dfbfcc..cd1b004f 100644 --- a/src/typescript-benchmark.test.js +++ b/src/typescript-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const typescriptBenchmark = require("./typescript-benchmark"); diff --git a/src/uglify-es-benchmark.js b/src/uglify-es-benchmark.js index fa94eb97..41cd2eae 100644 --- a/src/uglify-es-benchmark.js +++ b/src/uglify-es-benchmark.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const UglifyJS = require("../build/uglify-es-bundled"); const fs = require("fs"); @@ -28,7 +11,7 @@ const payloads = [ options: { compress: { passes: 1, sequences: false } } } ].map(({ name, options }) => ({ - payload: fs.readFileSync(`resources/${name}`, "utf8"), + payload: fs.readFileSync(`third_party/${name}`, "utf8"), options })); diff --git a/src/uglify-es-benchmark.test.js b/src/uglify-es-benchmark.test.js index ca11489a..45e6af7b 100644 --- a/src/uglify-es-benchmark.test.js +++ b/src/uglify-es-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const uglifyEsBenchmark = require("./uglify-es-benchmark"); diff --git a/src/uglify-js-benchmark.js b/src/uglify-js-benchmark.js index a7955aaa..2aba9d5b 100644 --- a/src/uglify-js-benchmark.js +++ b/src/uglify-js-benchmark.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const UglifyJS = require("../build/uglify-js-bundled"); const fs = require("fs"); @@ -28,7 +11,7 @@ const payloads = [ options: { compress: { passes: 1 } } } ].map(({ name, options }) => ({ - payload: fs.readFileSync(`resources/${name}`, "utf8"), + payload: fs.readFileSync(`third_party/${name}`, "utf8"), options })); diff --git a/src/uglify-js-benchmark.test.js b/src/uglify-js-benchmark.test.js index f1ab42ff..a40a8649 100644 --- a/src/uglify-js-benchmark.test.js +++ b/src/uglify-js-benchmark.test.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const uglifyJsBenchmark = require("./uglify-js-benchmark"); diff --git a/src/vfs.js b/src/vfs.js index 88657cf1..14e26070 100644 --- a/src/vfs.js +++ b/src/vfs.js @@ -1,100 +1,83 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const virtualfs = require("virtualfs"); // Setup the virtual file system. const fs = new virtualfs.VirtualFS(); -fs.mkdirpSync("resources/todomvc/react"); +fs.mkdirpSync("third_party/todomvc/react"); fs.writeFileSync( - "resources/backbone-1.1.0.js", - require("raw-loader!../resources/backbone-1.1.0.js") + "third_party/backbone-1.1.0.js", + require("raw-loader!../third_party/backbone-1.1.0.js") ); fs.writeFileSync( - "resources/jquery-3.2.1.js", - require("raw-loader!../resources/jquery-3.2.1.js") + "third_party/jquery-3.2.1.js", + require("raw-loader!../third_party/jquery-3.2.1.js") ); fs.writeFileSync( - "resources/coffeescript-lexer-2.0.1.coffee", - require("raw-loader!../resources/coffeescript-lexer-2.0.1.coffee") + "third_party/coffeescript-lexer-2.0.1.coffee", + require("raw-loader!../third_party/coffeescript-lexer-2.0.1.coffee") ); fs.writeFileSync( - "resources/lodash.core-4.17.4.js", - require("raw-loader!../resources/lodash.core-4.17.4.js") + "third_party/lodash.core-4.17.4.js", + require("raw-loader!../third_party/lodash.core-4.17.4.js") ); fs.writeFileSync( - "resources/lodash.min-4.17.4.js.map", - require("raw-loader!../resources/lodash.min-4.17.4.js.map") + "third_party/lodash.min-4.17.4.js.map", + require("raw-loader!../third_party/lodash.min-4.17.4.js.map") ); fs.writeFileSync( - "resources/mootools-core-1.6.0.js", - require("raw-loader!../resources/mootools-core-1.6.0.js") + "third_party/mootools-core-1.6.0.js", + require("raw-loader!../third_party/mootools-core-1.6.0.js") ); fs.writeFileSync( - "resources/preact-8.2.5.js", - require("raw-loader!../resources/preact-8.2.5.js") + "third_party/preact-8.2.5.js", + require("raw-loader!../third_party/preact-8.2.5.js") ); fs.writeFileSync( - "resources/preact-8.2.5.js.map", - require("raw-loader!../resources/preact-8.2.5.js.map") + "third_party/preact-8.2.5.js.map", + require("raw-loader!../third_party/preact-8.2.5.js.map") ); fs.writeFileSync( - "resources/redux.min-3.7.2.js", - require("raw-loader!../resources/redux.min-3.7.2.js") + "third_party/redux.min-3.7.2.js", + require("raw-loader!../third_party/redux.min-3.7.2.js") ); fs.writeFileSync( - "resources/source-map.min-0.5.7.js.map", - require("raw-loader!../resources/source-map.min-0.5.7.js.map") + "third_party/source-map.min-0.5.7.js.map", + require("raw-loader!../third_party/source-map.min-0.5.7.js.map") ); fs.writeFileSync( - "resources/speedometer-es2015-test-2.0.js", - require("raw-loader!../resources/speedometer-es2015-test-2.0.js") + "third_party/speedometer-es2015-test-2.0.js", + require("raw-loader!../third_party/speedometer-es2015-test-2.0.js") ); fs.writeFileSync( - "resources/todomvc/react/app.jsx", - require("raw-loader!../resources/todomvc/react/app.jsx") + "third_party/todomvc/react/app.jsx", + require("raw-loader!../third_party/todomvc/react/app.jsx") ); fs.writeFileSync( - "resources/todomvc/react/footer.jsx", - require("raw-loader!../resources/todomvc/react/footer.jsx") + "third_party/todomvc/react/footer.jsx", + require("raw-loader!../third_party/todomvc/react/footer.jsx") ); fs.writeFileSync( - "resources/todomvc/react/todoItem.jsx", - require("raw-loader!../resources/todomvc/react/todoItem.jsx") + "third_party/todomvc/react/todoItem.jsx", + require("raw-loader!../third_party/todomvc/react/todoItem.jsx") ); fs.writeFileSync( - "resources/todomvc/typescript-angular.ts", - require("raw-loader!../resources/todomvc/typescript-angular.ts") + "third_party/todomvc/typescript-angular.ts", + require("raw-loader!../third_party/todomvc/typescript-angular.ts") ); fs.writeFileSync( - "resources/underscore-1.8.3.js", - require("raw-loader!../resources/underscore-1.8.3.js") + "third_party/underscore-1.8.3.js", + require("raw-loader!../third_party/underscore-1.8.3.js") ); fs.writeFileSync( - "resources/underscore.min-1.8.3.js.map", - require("raw-loader!../resources/underscore.min-1.8.3.js.map") + "third_party/underscore.min-1.8.3.js.map", + require("raw-loader!../third_party/underscore.min-1.8.3.js.map") ); fs.writeFileSync( - "resources/vue.runtime.esm-nobuble-2.4.4.js", - require("raw-loader!../resources/vue.runtime.esm-nobuble-2.4.4.js") + "third_party/vue.runtime.esm-nobuble-2.4.4.js", + require("raw-loader!../third_party/vue.runtime.esm-nobuble-2.4.4.js") ); module.exports = fs; diff --git a/resources/backbone-1.1.0.js b/third_party/backbone-1.1.0.js similarity index 100% rename from resources/backbone-1.1.0.js rename to third_party/backbone-1.1.0.js diff --git a/resources/coffeescript-lexer-2.0.1.coffee b/third_party/coffeescript-lexer-2.0.1.coffee similarity index 100% rename from resources/coffeescript-lexer-2.0.1.coffee rename to third_party/coffeescript-lexer-2.0.1.coffee diff --git a/resources/jquery-3.2.1.js b/third_party/jquery-3.2.1.js similarity index 100% rename from resources/jquery-3.2.1.js rename to third_party/jquery-3.2.1.js diff --git a/resources/lodash.core-4.17.4.js b/third_party/lodash.core-4.17.4.js similarity index 100% rename from resources/lodash.core-4.17.4.js rename to third_party/lodash.core-4.17.4.js diff --git a/resources/lodash.min-4.17.4.js.map b/third_party/lodash.min-4.17.4.js.map similarity index 100% rename from resources/lodash.min-4.17.4.js.map rename to third_party/lodash.min-4.17.4.js.map diff --git a/resources/mootools-core-1.6.0.js b/third_party/mootools-core-1.6.0.js similarity index 100% rename from resources/mootools-core-1.6.0.js rename to third_party/mootools-core-1.6.0.js diff --git a/resources/preact-8.2.5.js b/third_party/preact-8.2.5.js similarity index 100% rename from resources/preact-8.2.5.js rename to third_party/preact-8.2.5.js diff --git a/resources/preact-8.2.5.js.map b/third_party/preact-8.2.5.js.map similarity index 100% rename from resources/preact-8.2.5.js.map rename to third_party/preact-8.2.5.js.map diff --git a/resources/redux.min-3.7.2.js b/third_party/redux.min-3.7.2.js similarity index 100% rename from resources/redux.min-3.7.2.js rename to third_party/redux.min-3.7.2.js diff --git a/resources/source-map.min-0.5.7.js.map b/third_party/source-map.min-0.5.7.js.map similarity index 100% rename from resources/source-map.min-0.5.7.js.map rename to third_party/source-map.min-0.5.7.js.map diff --git a/resources/speedometer-es2015-test-2.0.js b/third_party/speedometer-es2015-test-2.0.js similarity index 100% rename from resources/speedometer-es2015-test-2.0.js rename to third_party/speedometer-es2015-test-2.0.js diff --git a/resources/todomvc/react/app.jsx b/third_party/todomvc/react/app.jsx similarity index 100% rename from resources/todomvc/react/app.jsx rename to third_party/todomvc/react/app.jsx diff --git a/resources/todomvc/react/footer.jsx b/third_party/todomvc/react/footer.jsx similarity index 100% rename from resources/todomvc/react/footer.jsx rename to third_party/todomvc/react/footer.jsx diff --git a/resources/todomvc/react/todoItem.jsx b/third_party/todomvc/react/todoItem.jsx similarity index 100% rename from resources/todomvc/react/todoItem.jsx rename to third_party/todomvc/react/todoItem.jsx diff --git a/resources/todomvc/typescript-angular.ts b/third_party/todomvc/typescript-angular.ts similarity index 100% rename from resources/todomvc/typescript-angular.ts rename to third_party/todomvc/typescript-angular.ts diff --git a/resources/underscore-1.8.3.js b/third_party/underscore-1.8.3.js similarity index 100% rename from resources/underscore-1.8.3.js rename to third_party/underscore-1.8.3.js diff --git a/resources/underscore.min-1.8.3.js.map b/third_party/underscore.min-1.8.3.js.map similarity index 100% rename from resources/underscore.min-1.8.3.js.map rename to third_party/underscore.min-1.8.3.js.map diff --git a/resources/vue.runtime.esm-nobuble-2.4.4.js b/third_party/vue.runtime.esm-nobuble-2.4.4.js similarity index 100% rename from resources/vue.runtime.esm-nobuble-2.4.4.js rename to third_party/vue.runtime.esm-nobuble-2.4.4.js diff --git a/webpack.config.js b/webpack.config.js index 30d65bcc..34996be1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,23 +1,6 @@ -// Copyright (c) 2017 Benedikt Meurer -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +// Copyright 2017 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. const CopyWebpackPlugin = require("copy-webpack-plugin"); const HtmlWebpackPlugin = require("html-webpack-plugin");