pathLength

The SVGGeometryElement.pathLength property reflects the pathLength attribute and returns the total length of the path, in user units.

MDN Reference