Commit 0a00011
authored
Optimize {__proto__:null} object literal creation (#1118)
Speeds up the common pattern of creating prototype-less objects by 40%:
TEST N TIME (ns) REF (ns) SCORE (%)
object_null 20000 124.50
TEST N TIME (ns) REF (ns) SCORE (%)
object_null 50000 74.30
It's so much faster the benchmarker decides to run it 50,000 times
instead of merely 20,000 times. Win.1 parent 36f969d commit 0a00011
2 files changed
+28
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16430 | 16430 | | |
16431 | 16431 | | |
16432 | 16432 | | |
| 16433 | + | |
16433 | 16434 | | |
16434 | 16435 | | |
16435 | 16436 | | |
| |||
16729 | 16730 | | |
16730 | 16731 | | |
16731 | 16732 | | |
| 16733 | + | |
| 16734 | + | |
| 16735 | + | |
| 16736 | + | |
| 16737 | + | |
16732 | 16738 | | |
16733 | 16739 | | |
16734 | 16740 | | |
| |||
33471 | 33477 | | |
33472 | 33478 | | |
33473 | 33479 | | |
| 33480 | + | |
| 33481 | + | |
| 33482 | + | |
| 33483 | + | |
| 33484 | + | |
| 33485 | + | |
| 33486 | + | |
| 33487 | + | |
| 33488 | + | |
| 33489 | + | |
| 33490 | + | |
| 33491 | + | |
33474 | 33492 | | |
33475 | 33493 | | |
33476 | 33494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
713 | 722 | | |
714 | 723 | | |
715 | 724 | | |
| |||
1098 | 1107 | | |
1099 | 1108 | | |
1100 | 1109 | | |
| 1110 | + | |
1101 | 1111 | | |
1102 | 1112 | | |
1103 | 1113 | | |
| |||
0 commit comments