From 17ff3e78745b31db4e841357e8eed2f6669bea7b Mon Sep 17 00:00:00 2001 From: Watson Date: Thu, 1 Aug 2024 11:45:51 +0900 Subject: [PATCH] test: add a performance test for attribute list declaration --- test/parse/test_attribute_list_declaration.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/parse/test_attribute_list_declaration.rb b/test/parse/test_attribute_list_declaration.rb index 2a8e2639..43882528 100644 --- a/test/parse/test_attribute_list_declaration.rb +++ b/test/parse/test_attribute_list_declaration.rb @@ -15,5 +15,16 @@ def test_linear_performance_space " root v CDATA #FIXED \"test\">]>") end end + + def test_linear_performance_tab_and_gt + seq = [10000, 50000, 100000, 150000, 200000] + assert_linear_performance(seq, rehearsal: 10) do |n| + REXML::Document.new("" * n + + "\">]>") + end + end end end