X-Git-Url: http://nitlanguage.org diff --git a/tests/bench_string_append.nit b/tests/bench_string_append.nit index a08bfb6..b7df069 100644 --- a/tests/bench_string_append.nit +++ b/tests/bench_string_append.nit @@ -14,7 +14,10 @@ # See the License for the specific language governing permissions and # limitations under the License. -var n = 7 +#alt1 import core +#alt1 import core::text::ropes + +var n = 4 if not args.is_empty then n = args.first.to_i end @@ -22,7 +25,8 @@ end var s = "*" var i = 0 while i < n do - var s2 = new Buffer.from("Je dis «") + var s2: Buffer = new FlatBuffer.from("Je dis «") + #alt1 s2 = new RopeBuffer.from("Je dis «") s2.append(s) s2.append("» et redis «") s2.append(s)