repo.or.cz
/
qtwebkit.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Update ReadMe.md
[qtwebkit.git]
/
JSTests
/
microbenchmarks
/
object-create-unknown-object-prototype.js
blob
28c468e3a6c255540c0da3b54f256a1c1143a518
1
function test(prototype)
2
{
3
return Object.create(prototype);
4
}
5
noInline(test);
6
7
var prototype1 = {};
8
var prototype2 = [];
9
var prototype3 = new Date();
10
var prototype4 = { hello: 42 };
11
var prototype5 = new Map();
12
for (var i = 0; i < 1e5; ++i) {
13
test(prototype1);
14
test(prototype2);
15
test(prototype3);
16
test(prototype4);
17
test(prototype5);
18
}