From 1599e8785f2d7734169aeb37a0b5d94f8212356d Mon Sep 17 00:00:00 2001 From: Watson Date: Thu, 1 Aug 2024 11:24:22 +0900 Subject: [PATCH] test: add a performance test for PI with many tabs --- test/parse/test_processing_instruction.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/parse/test_processing_instruction.rb b/test/parse/test_processing_instruction.rb index fba79cea..ba381dc4 100644 --- a/test/parse/test_processing_instruction.rb +++ b/test/parse/test_processing_instruction.rb @@ -116,5 +116,12 @@ def test_linear_performance_gt REXML::Document.new("" * n + " ?>") end end + + def test_linear_performance_tab + seq = [10000, 50000, 100000, 150000, 200000] + assert_linear_performance(seq, rehearsal: 10) do |n| + REXML::Document.new(" ?>") + end + end end end