whee
This commit is contained in:
parent
5e084b9a71
commit
35e744eacc
2 changed files with 14 additions and 13 deletions
|
|
@ -1,12 +1,8 @@
|
|||
# speci.js - specialization benchmark test
|
||||
|
||||
Tests two-property objects with {x, y} or {y, x} and access in a tight loop
|
||||
When the array contains consistent elements it optimizes well, but the first
|
||||
run is much slower on a randomly mixed array.
|
||||
|
||||
Subsequent runs come up much faster as the higher-tier compilers in V8 can
|
||||
handle a couple of different variants -- but this might not be true of all
|
||||
possibilities. 256 randomized variants is linearly slower.
|
||||
When the array contains consistent elements it optimizes well, but slows down
|
||||
as you add variants, and slows down A LOT if you add other random properties
|
||||
|
||||
```
|
||||
% make test
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue