diff --git a/benchmarks/ComplexTypeBenchTrait.php b/benchmarks/ComplexTypeBenchTrait.php
index 5b9acc3..264482f 100644
--- a/benchmarks/ComplexTypeBenchTrait.php
+++ b/benchmarks/ComplexTypeBenchTrait.php
@@ -113,7 +113,10 @@ public function setUp(): void
$this->extSoapEncoded->__soapCall('test', ['testParam' => $this->singleItem]);
}
- private function buildPhpSoapDriver(string $use): Driver
+ /**
+ * @param string $occurs extra attributes for every element of addressType and itemType, for example minOccurs="0"
+ */
+ private function buildPhpSoapDriver(string $use, string $occurs = ''): Driver
{
$encodingStyle = $use === 'encoded'
? ' encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"'
@@ -134,22 +137,22 @@ private function buildPhpSoapDriver(string $use): Driver
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/benchmarks/EncodeSparseBench.php b/benchmarks/EncodeSparseBench.php
new file mode 100644
index 0000000..96510f3
--- /dev/null
+++ b/benchmarks/EncodeSparseBench.php
@@ -0,0 +1,122 @@
+ */
+ private array $allPresent;
+ /** @var list