Tests:
-
get jQuery.text()
-
get Element.textContent
-
set jQuery.text()
-
set Element.textContent
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0
Chrome 123 on Windows
View result in a separate tab
set Element.textContent
4.9M/s
get Element.textContent
944K/s
View exact numbers
| Test name |
Executions per second |
|
✓
set Element.textContent
|
4,929,951 Ops/sec |
|
get Element.textContent
|
944,017 Ops/sec |
|
get jQuery.text()
|
0 Ops/sec |
|
set jQuery.text()
|
0 Ops/sec |
Do you really want to delete benchmark?