mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
17
tests/html/test_getter_time.html
Normal file
17
tests/html/test_getter_time.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<div></div>
|
||||
<script>
|
||||
var elem = document.documentElement.firstChild;
|
||||
|
||||
var start = new Date()
|
||||
var count = 1000000;
|
||||
for (var i = 0; i < count; i++) {
|
||||
var a = elem.nodeType;
|
||||
}
|
||||
var stop = new Date()
|
||||
window.alert((stop - start) / count * 1e6);
|
||||
|
||||
/*start = new Date().getTime();
|
||||
for (i = 0; i < 10000; i++)
|
||||
elem.width = i;
|
||||
window.alert(new Date().getTime() - start);*/
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue