nodeValue A vs textContent B vs nodeValue C vs textContent D506,188 ops/sec
494,084 ops/sec
492,342 ops/sec
481,426 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| nodeValue A | |
| textContent B | |
| nodeValue C | |
| textContent D |
| Test name | Executions per second |
|---|---|
| ✓ nodeValue A | 6,041,683 Ops/sec |
| nodeValue C | 6,035,223 Ops/sec |
| textContent B | 4,329,582 Ops/sec |
| textContent D | 4,310,644 Ops/sec |