После выборов Сёма принёс из школы радостную новость: хорошо, что Обама выйграл, потому что МакКейн хотел уничтожить весь мир. Выяснилось, что так дети говорят. Разумеется, те, что живут в Парк Слопе. Казалось бы, богатый район, люди образованные, должны соображать чему учат своих 5-летних детей. Но с такими книжными магазинами от них, пожалуй, требовать нечего.
А завтра, в честь коронации, младшим классам велели прийти в красном. Сейчас поедем искать подходящую тряпку для пионерского галстука
Monday, January 19, 2009
Кстати о галстуках
После выборов Сёма принёс из школы радостную новость: хорошо, что Обама выйграл, потому что МакКейн хотел уничтожить весь мир. Выяснилось, что так дети говорят. Разумеется, те, что живут в Парк Слопе. Казалось бы, богатый район, люди образованные, должны соображать чему учат своих 5-летних детей. Но с такими книжными магазинами от них, пожалуй, требовать нечего.
А завтра, в честь коронации, младшим классам велели прийти в красном. Сейчас поедем искать подходящую тряпку для пионерского галстука
Round 2
Friday, September 12, 2008
resume
Monday, September 8, 2008
Browser Shoot-Out
The following tests measure the amount of time it takes the browser to create, parse and render a chunk of html, specifically a 300x30 table with and without any content in the cells. Each test runs 3 times, and the slowest result is discarded. The method for running tests and taking measurements is as follows:
prepare for test (pre-generate html, clear target, etc)
setTimeout with delay=0 // let all pending events clear up
get the start time
run the test
setTimeout with delay=0 // let the test finish
get the end time and store the delta
I ran all tests on a 2Ghz Core Duo laptop with Radeon x1400 video card, 1 GB of memory, Windows XP sp3, running on battery power (too lazy to get up and plug it into the wall). All results are in milliseconds.
The contenders
Here are the contenders, with their identification strings- IE 7. Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
- Opera 9.52 Opera/9.52 (Windows NT 5.1; U; en)
- Safari 3.1 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Version/3.1.2 Safari/525.21
- Chrome 0.2 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.2.149.27 Safari/525.13
- Firefox 3.01 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
- Firefox 3.1 nightly, pre-beta 1, TraceMonkey jit enabled Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b1pre) Gecko/20080905031348 Minefield/3.1b1pre
Rendering Tests
These tests measured the amount of time it takes a browser to parse and render a pre-generated 300x30 html table into an on-screen element via innerHTML, into an off-screen element (a div that is not attached to the document) via innerHTML, and a combination of both, where the table is rendered into an off-screen div, then moved to the on-screen one.
These tests were ran using both the default style and a pre-defined style (fixed cell height/width, font, border, etc), and with empty and non-empty tables (cells were filled with non-breaking spaces for empty, and strings in the form of "row, column" for non-empty)
| browser | style | render on-screen | render off-screen | combo | |||
|---|---|---|---|---|---|---|---|
| non-empty | empty | non-empty | empty | non-empty | empty | ||
| IE 7 | default | 849 | 531 | 105 | 105 | 912 | 609 |
| fixed | 1385 | 1036 | 104 | 109 | 1506 | 1156 | |
| Opera | default | 349 | 312 | 42 | 42 | 313 | 318 |
| fixed | 474 | 484 | 73 | 67 | 412 | 485 | |
| Safari | default | 302 | 213 | 41 | 41 | 281 | 209 |
| fixed | 396 | 333 | 41 | 42 | 354 | 333 | |
| Chrome | default | 246 | 164 | 51 | 49 | 196 | 130 |
| fixed | 338 | 295 | 58 | 52 | 273 | 245 | |
| Firefox 3 | default | 562 | 471 | 72 | 93 | 501 | 392 |
| fixed | 519 | 554 | 71 | 85 | 456 | 482 | |
| Firefox 3.1 | default | 601 | 497 | 71 | 96 | 524 | 417 |
| fixed | 532 | 577 | 73 | 92 | 465 | 496 | |
DOM tests
In these tests, the tables were constructed into an off-screen buffer using DOM operations. Cloning was used as much as possible, and the contents of the cells were set using textContent or innerText where available, and using createTextNode otherwise.
| browser | non-empty | empty |
|---|---|---|
| IE7 | 911 | 385 |
| Opera | 417 | 11 |
| Safari | 172 | 21 |
| Chrome | 314 | 12 |
| Firefox 3 | 247 | 26 |
| Firefox 3.1 | 193 | 22 |
String and Array performance tests
The last test consists of building a string containing a 300x30 html table, by pushing substrings into an array and joining them in the end. This is a pure JavaScript benchmark.
| browser | non-empty | empty |
|---|---|---|
| IE7 | 167 | 104 |
| Opera | 193 | 89 |
| Safari | 84 | 42 |
| Chrome | 24 | 20 |
| Firefox 3 | 28 | 19 |
| Firefox 3.1 | 22 | 11 |
Conclusions
- You're OK as long as you are not using the Internet Explorer. Unfortunately, it looks like most of the power users have already switched away from it. Maybe Google can find a way to switch some of the non-power base, though as long as it is bundled with Windows it'll have a large user base. I hear people still use AOL
- Chrome is good. Looks like Google developers managed to speed up Safari's Webkit even further, so Chrome in the lead and Safari won't be far behind
- Firefox's new TraceMonkey javascript engine kicks ass. Safari's new engine is also rumored to be a lot faster than the current one, so Google's V8 is not yet living up to the hype
- Mozilla people better start worrying about rendering. The current results are disappointing
- I expected Opera to be faster
Tuesday, July 22, 2008
Tuesday, February 12, 2008
Ребёнок интересуется...
Saturday, December 29, 2007
sincerest form of flattery
Monday, October 15, 2007
beta !
Thursday, October 4, 2007
Tipping Point
Wednesday, October 3, 2007
Как говорят с лендлордом
Tuesday, October 2, 2007
метро
Tuesday, September 18, 2007
here we go again
She said she could envision a day when "you have to show proof to your employer that you're insured as a part of the job interview — like when your kid goes to school and has to show proof of vaccination"Сначала даже не знал, как реагировать - я привык к тому, что медицинская страховка - это часть компенсации, а не наоборот. И как она собирается это устраивать? Потом дошло - это будет очень легко выполнить. К тому времени будет только один Работодатель, и единственная страховая компания ГосСтрах, и все мы будем ходить в ногу и одеваться в одинаковые костюмчики
Tuesday, September 11, 2007
Monday, September 10, 2007
Friday, August 10, 2007
we would get far less information about drug safety and efficacy if terminally ill patients could access unapproved drugs, because there would then be no incentive for patients to participate in the clinical trials that generate such information.Обалдеть можно. Лечиться нельзя. Самоубийство тоже нельзя (посадят того, кто принёс шприц/верёвку/пистолет). Даже в концлагерях, вроде-бы, вместо участия в экспериментах или перерабатывания на мыло можно было просто повеситься. Когда-то думал, что здесь в основе законности лежит правило, что гражданам можно всё, что не запрещено, в то время как государству - наоборот. А теперь выходит, что нет. Гос-во может делать всё, что хочет, и подданные - тоже всё, что гос-во от них хочет. Ни больше, не меньше. Видели бы этот позор отцы-основатели.
Wednesday, August 8, 2007
HP7
Wednesday, July 25, 2007
Гипотетическая ситуация
Thursday, July 12, 2007
Зла не хватает
Monday, June 25, 2007
Tuesday, June 19, 2007
вкратце
- с покупкой дома ничего не вышло. несостоявшиеся продавцы не смогли предоставить все необходимые документы. пока-что морочат голову с залогом...
- попытка перейти в другой отдел на работе удалась, но не без приключений. теперь обо мне знает большое начальство...
- Гайджин Клавелла оказался так себе, не чета Тайпану или Сёгуну. Разве что по размеру.
- Прочёл детский фантастический роман Хайнлайна "Red Planet". Как всегда, круто. Руководство для молодого анархиста. И вообще, фантастика 40х годов - это нечто. Домотканная демократия, бесконечное выбирание председателей собраний, бабам слова не давали, дети с пистолетами, как на диком западе... Надо Филе предложить почитать.
- Little Miss Sunshine рулит, но не очень оригинально
- ещё забыл: отписался от СУПа. без нервов и истерик
