setremoveattr

Benchmark created on


Preparation HTML

<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
    <path id="path" visibility="hidden" stroke="blue" d="M5 60 l215 0" />
</svg>

Setup

var path = document.getElementById("path");

Test runner

Ready to run.

Testing in
TestOps/sec
Set Visible
path.setAttribute("visibility", "visible");
ready
Remove Attr
path.removeAttribute("visibility");
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.