// Copyright 2018 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.newBenchmarkSuite("SingleLineString",[1000],[newBenchmark("SingleLineString",false,true,iterations,Run,SingleLineStringSetup)]);newBenchmarkSuite("SingleLineStrings",[3000],[newBenchmark("SingleLineStrings",false,true,iterations,Run,SingleLineStringsSetup)]);newBenchmarkSuite("MultiLineString",[1000],[newBenchmark("MultiLineString",false,true,iterations,Run,MultiLineStringSetup)]);functionSingleLineStringSetup(){code="\""+"This is a string".repeat(600)+"\"";%FlattenString(code);}functionSingleLineStringsSetup(){code="\"This is a string\"\n".repeat(600);%FlattenString(code);}functionMultiLineStringSetup(){code="\""+"This is a string \\\n".repeat(600)+"\"";%FlattenString(code);}functionRun(){if(code==undefined){thrownewError("No test data");}eval(code);}