

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");