QuirksBlog: Benchmark tests: style vs. className I wanted to make sure that changing the className doesn't lead to performance problems. My new style vs. className benchmark test clearly shows that it doesn't. In fact, changing the className is faster than changing the style in all browsers but Safari.styleを使うのとclassNameを使うのではどっちが早いの?って実験をしているサイトを発見。 どうやら、classNameで指定する方が早いらしいです(Safariを除く…) styleと