Fast list filter by removing list from dom during filter
JavaScript performance comparison
Preparation code
<script src="//ajax.googleapis.com/ajax/libs/mootools/1.3/mootools-yui-compressed.js"></script>
<script>
window.list = new Element('ul');
document.body.grab(window.list);
for(i = 0; i < 1000; i++) {
window.list.grab(new Element('li', {text: i });
}
</script>
Preparation code output
Test runner
Warning! For accurate results, please disable Firebug before running the tests. (Why?)
Java applet disabled.
| Test | Ops/sec | |
|---|---|---|
No hiding |
|
pending… |
Hiding |
|
pending… |
You can edit these tests or add even more tests to this page by appending /edit to the URL.
0 comments