Commit 819efd1e authored by Florian Sattler's avatar Florian Sattler Committed by Commit Bot

[parser] Reduced test size to not timeout on atom

This halfs the test size but also halfs the baseline for the score to
make it comparable.

Bug: v8:7926
Change-Id: Id3769def6a555ef1bddf8dd5e54c04b8652e5b54
Reviewed-on: https://chromium-review.googlesource.com/1188465Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Commit-Queue: Florian Sattler <sattlerf@google.com>
Cr-Commit-Position: refs/heads/master@{#55403}
parent f2d6d516
......@@ -2,54 +2,54 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
new BenchmarkSuite("ArrowFunctionShort", [2000], [
new BenchmarkSuite("ArrowFunctionShort", [1000], [
new Benchmark("ArrowFunctionShort", false, true, iterations, Run, ArrowFunctionShortSetup)
]);
new BenchmarkSuite("ArrowFunctionLong", [2000], [
new BenchmarkSuite("ArrowFunctionLong", [1000], [
new Benchmark("ArrowFunctionLong", false, true, iterations, Run, ArrowFunctionLongSetup)
]);
new BenchmarkSuite("CommaSepExpressionListShort", [2000], [
new BenchmarkSuite("CommaSepExpressionListShort", [1000], [
new Benchmark("CommaSepExpressionListShort", false, true, iterations, Run, CommaSepExpressionListShortSetup)
]);
new BenchmarkSuite("CommaSepExpressionListLong", [2000], [
new BenchmarkSuite("CommaSepExpressionListLong", [1000], [
new Benchmark("CommaSepExpressionListLong", false, true, iterations, Run, CommaSepExpressionListLongSetup)
]);
new BenchmarkSuite("CommaSepExpressionListLate", [2000], [
new BenchmarkSuite("CommaSepExpressionListLate", [1000], [
new Benchmark("CommaSepExpressionListLate", false, true, iterations, Run, CommaSepExpressionListLateSetup)
]);
new BenchmarkSuite("FakeArrowFunction", [2000], [
new BenchmarkSuite("FakeArrowFunction", [1000], [
new Benchmark("FakeArrowFunction", false, true, iterations, Run, FakeArrowFunctionSetup)
]);
function ArrowFunctionShortSetup() {
code = "let a;\n" + "a = (a,b) => { return a+b; }\n".repeat(200)
code = "let a;\n" + "a = (a,b) => { return a+b; }\n".repeat(100)
}
function ArrowFunctionLongSetup() {
code = "let a;\n" + "a = (a,b,c,d,e,f,g,h,i,j) => { return a+b; }\n".repeat(200)
code = "let a;\n" + "a = (a,b,c,d,e,f,g,h,i,j) => { return a+b; }\n".repeat(100)
}
function CommaSepExpressionListShortSetup() {
code = "let a;\n" + "a = (a,1)\n".repeat(200)
code = "let a;\n" + "a = (a,1)\n".repeat(100)
}
function CommaSepExpressionListLongSetup() {
code = "let a; let b; let c;\n" + "a = (a,2,3,4,5,b,c,1,7,1)\n".repeat(200)
code = "let a; let b; let c;\n" + "a = (a,2,3,4,5,b,c,1,7,1)\n".repeat(100)
}
function CommaSepExpressionListLateSetup() {
code = "let a; let b; let c; let d; let e; let f; let g; let h; let i;\n"
+ "a = (a,b,c,d,e,f,g,h,i,1)\n".repeat(200)
+ "a = (a,b,c,d,e,f,g,h,i,1)\n".repeat(100)
}
function FakeArrowFunctionSetup() {
code = "let a; let b; let c; let d; let e; let f; let g; let h; let i; let j;\n"
+ "a = (a,b,c,d,e,f,g,h,i,j)\n".repeat(200)
+ "a = (a,b,c,d,e,f,g,h,i,j)\n".repeat(100)
}
function Run() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment