Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
jQuery vs HE (html entities) lib v4
(version: 0)
Comparing performance of:
jQuery vs HE
Created:
6 years ago
by:
Guest
Jump to the latest result
HTML Preparation code:
<script src="https://cdn.jsdelivr.net/npm/jquery@2.2.4/dist/jquery.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/he@1.2.0/he.min.js"></script>
Script Preparation code:
var testVal = "a"s"d & qwe"; var result = "";
Tests:
jQuery
for(var i = 0; i<9999; i++){ result += $('<div/>').html(testVal).text(); } console.log(result);
HE
for(var i = 0; i<9999; i++){ result += he.decode(testVal); } console.log(result);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
jQuery
HE
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Related benchmarks:
jQuery vs HE (html entities) lib
jQuery vs HE (html entities) lib v3
jQuery vs HE (html entities) lib v5
JQUERY VS VANILLA v-na0
Comments
Confirm delete:
Do you really want to delete benchmark?