Посмотрев кино в пиратке, вряд ли пойду в кино, т.к. всё заранее знаю и мне там будет уже не интересно. В связи с этим в голове вертится идея: платить за кино в кинотеатре уже после просмотра фильма. Типа если понравился, то заплачу, если не понравился, то не заплачу. Если так себе, то заплачу мало. Вот только как это организовать с материально технической стороны… ума не приложу :)
что именно? :)
если про третье, то только смириться. не так уж и часто делается svn co|export. или не хранить сторонние библиотеки в проекте в принципе
результаты без include_once:
[timon@localhost ~]$ ab -n5000 -c5 http://localhost2/
Server Software: Apache/2.2.8
Server Hostname: localhost2
Server Port: 80
Document Path: /
Document Length: 8 bytes
Concurrency Level: 5
Time taken for tests: 6.403327 seconds
Complete requests: 5000
Failed requests: 0
Write errors: 0
Total transferred: 990198 bytes
HTML transferred: 40008 bytes
Requests per second: 780.84 [#/sec] (mean)
Time per request: 6.403 [ms] (mean)
Time per request: 1.281 [ms] (mean, across all concurrent requests)
Transfer rate: 150.86 [Kbytes/sec] received
c include_once:
[timon@localhost ~]$ ab -n5000 -c5 http://localhost2/
Server Software: Apache/2.2.8
Server Hostname: localhost2
Server Port: 80
Document Path: /
Document Length: 8 bytes
Concurrency Level: 5
Time taken for tests: 4.786561 seconds
Complete requests: 5000
Failed requests: 0
Write errors: 0
Total transferred: 990000 bytes
HTML transferred: 40000 bytes
Requests per second: 1044.59 [#/sec] (mean)
Time per request: 4.787 [ms] (mean)
Time per request: 0.957 [ms] (mean, across all concurrent requests)
Transfer rate: 201.82 [Kbytes/sec] received
apc отключен, после каждого теста делался httpd_restart и echo 1 > /proc/sys/vm/drop_caches
вопросы есть? :)
p.s. для тех кто не умеет читать цифирьки, с include на 25% быстрее
только этта
SELECT (xpath('/value/text()',data))[1] FROM xmltable where cast((xpath('/value/text()',xml_column))[1] as text) like '%ab%';
и индекс соответсвенно:
CREATE INDEX i_zzz ON xmltable USING btree(cast((xpath('/value/text()',xml_column))[1] as text));
только это никак не помогает в like запросах
если про третье, то только смириться. не так уж и часто делается svn co|export. или не хранить сторонние библиотеки в проекте в принципе
-с количество конкурентных(одновременных) запросов
исходник:
/* include_once 'a.php';
include_once 'b.php';
include_once 'c.php';
include_once 'd.php';
include_once 'e.php';
include_once 'f.php';
include_once 'g.php';
include_once 'h.php';*/
function a(){
echo 'a';
}
function b(){
echo 'b';
}
function c(){
echo 'c';
}
function d(){
echo 'd';
}
function e(){
echo 'e';
}
function f(){
echo 'f';
}
function g(){
echo 'g';
}
function h(){
echo 'h';
}
a();b();c();d();e();f();g();h();
?>
результаты без include_once:
[timon@localhost ~]$ ab -n5000 -c5 http://localhost2/
Server Software: Apache/2.2.8
Server Hostname: localhost2
Server Port: 80
Document Path: /
Document Length: 8 bytes
Concurrency Level: 5
Time taken for tests: 6.403327 seconds
Complete requests: 5000
Failed requests: 0
Write errors: 0
Total transferred: 990198 bytes
HTML transferred: 40008 bytes
Requests per second: 780.84 [#/sec] (mean)
Time per request: 6.403 [ms] (mean)
Time per request: 1.281 [ms] (mean, across all concurrent requests)
Transfer rate: 150.86 [Kbytes/sec] received
c include_once:
[timon@localhost ~]$ ab -n5000 -c5 http://localhost2/
Server Software: Apache/2.2.8
Server Hostname: localhost2
Server Port: 80
Document Path: /
Document Length: 8 bytes
Concurrency Level: 5
Time taken for tests: 4.786561 seconds
Complete requests: 5000
Failed requests: 0
Write errors: 0
Total transferred: 990000 bytes
HTML transferred: 40000 bytes
Requests per second: 1044.59 [#/sec] (mean)
Time per request: 4.787 [ms] (mean)
Time per request: 0.957 [ms] (mean, across all concurrent requests)
Transfer rate: 201.82 [Kbytes/sec] received
apc отключен, после каждого теста делался httpd_restart и echo 1 > /proc/sys/vm/drop_caches
вопросы есть? :)
p.s. для тех кто не умеет читать цифирьки, с include на 25% быстрее
SELECT (xpath('/value/text()',data))[1] FROM xmltable where cast((xpath('/value/text()',xml_column))[1] as text) like '%ab%';
и индекс соответсвенно:
CREATE INDEX i_zzz ON xmltable USING btree(cast((xpath('/value/text()',xml_column))[1] as text));
только это никак не помогает в like запросах