Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

7 Stron V  « < 3 4 5 6 7 >  
Closed TopicStart new topic
> [klasa] Chameleon 1.9.1, Prosta ale szybka obsługa szablonów
FiDO
post
Post #81





Grupa: Przyjaciele php.pl
Postów: 1 717
Pomógł: 0
Dołączył: 12.06.2002
Skąd: Wolsztyn..... Studia: Zielona Góra

Ostrzeżenie: (0%)
-----


No to update wynikow (pelen komplet szablonow http://willow.iie.uz.zgora.pl/~ipatalas/dev/tpl.rar):

Kod
Cache = 0
Template = tpl_1.html

Testing Chameleon 1.1.0 CVS            => skipped
Testing Chameleon 1.1.5                => skipped
Testing Chameleon 1.2.0                =>   94.12 requests/s
Testing Nemesis 1.3.0b                 =>  121.52 requests/s
Testing OPT 1.0.0 RC2                  => skipped
Testing OPT 1.0.0 RC2 Lite             => skipped
Testing Savant 2.4.2                   =>  108.47 requests/s
Testing SmartTemplate 1.0.2            => skipped
Testing Smarty 2.6.12                  =>   54.70 requests/s
Testing Smarty Light 2.2.11            =>   55.98 requests/s

===============================
Cache = 1
Template = tpl_1.html

Testing Chameleon 1.1.0 CVS            => skipped
Testing Chameleon 1.1.5                => skipped
Testing Chameleon 1.2.0                =>   94.12 requests/s
Testing Nemesis 1.3.0b                 =>  220.69 requests/s
Testing OPT 1.0.0 RC2                  => skipped
Testing OPT 1.0.0 RC2 Lite             => skipped
Testing Savant 2.4.2                   =>  109.09 requests/s
Testing SmartTemplate 1.0.2            => skipped
Testing Smarty 2.6.12                  =>  100.52 requests/s
Testing Smarty Light 2.2.11            =>  145.45 requests/s

===============================
Cache = 0
Template = tpl_2.html

Testing Chameleon 1.1.0 CVS            =>   73.28 requests/s
Testing Chameleon 1.1.5                =>  101.59 requests/s
Testing Chameleon 1.2.0                =>   94.58 requests/s
Testing Nemesis 1.3.0b                 =>  158.68 requests/s
Testing OPT 1.0.0 RC2                  =>   79.01 requests/s
Testing OPT 1.0.0 RC2 Lite             =>  112.94 requests/s
Testing Savant 2.4.2                   =>  122.29 requests/s
Testing SmartTemplate 1.0.2            =>  165.52 requests/s
Testing Smarty 2.6.12                  =>   84.96 requests/s
Testing Smarty Light 2.2.11            =>  130.61 requests/s

===============================
Cache = 1
Template = tpl_2.html

Testing Chameleon 1.1.0 CVS            =>   75.00 requests/s
Testing Chameleon 1.1.5                =>  101.59 requests/s
Testing Chameleon 1.2.0                =>   94.12 requests/s
Testing Nemesis 1.3.0b                 =>  192.00 requests/s
Testing OPT 1.0.0 RC2                  =>   78.69 requests/s
Testing OPT 1.0.0 RC2 Lite             =>  112.94 requests/s
Testing Savant 2.4.2                   =>  123.08 requests/s
Testing SmartTemplate 1.0.2            =>  166.96 requests/s
Testing Smarty 2.6.12                  =>   93.66 requests/s
Testing Smarty Light 2.2.11            =>  103.23 requests/s


Kod udostepnie jak znajde chwile na dopracowanie go troszke, bo teraz jest lekka prowizorka i az strach to pokazywac ;P Poki co musze sie zabrac za projekt, bo czas tyka nieublaganie, a ja zamiast go robic to bawie sie jakimis szablonami (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Jak ktos ma pojecie jak doprowadzic takie cos: {@cls = cycle("par", "odd")} w OPT do dzialania to bede wdzieczny za informacje..
Go to the top of the page
+Quote Post
Bastion
post
Post #82





Grupa: Zarejestrowani
Postów: 505
Pomógł: 0
Dołączył: 8.01.2005

Ostrzeżenie: (0%)
-----


(IMG:http://forum.php.pl/style_emoticons/default/dry.gif) szkoda ze system tagow a chameleonie nie sprawdzil sie na dluzsza mete.
ale nie ma tego zlego co by na dobre nie wyszlo - wlasnie pracuje nad kompilatorem i mam nadzieje ze "gad" w wersji 1.3.0 bedzie juz smigal (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
hwao
post
Post #83


Developer


Grupa: Moderatorzy
Postów: 2 844
Pomógł: 20
Dołączył: 25.11.2003
Skąd: Olkusz




Swoja droga, tez napisalem system szablonów na własne potrzebny:)

Znacie jakies programy debugujace co ile sie wykonuje? (pod php5)

Czyli najlepiej wypisane w którym momecie ile czasu co trwalo (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) (nie chodzi mi o phpowe (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) tylko jakis specjalny soft do tego).

Pozdrawiam
Go to the top of the page
+Quote Post
Bastion
post
Post #84





Grupa: Zarejestrowani
Postów: 505
Pomógł: 0
Dołączył: 8.01.2005

Ostrzeżenie: (0%)
-----


hum, chyba inne mozliwosci jak w php to nie ma, moze zrobic test ile wykonuje sie funkcja pobierajaca czas i wykonujaca odejmowanie miedzy dwoma czasami - i na tego podstawie
wyliczyc czas poprakowy ktory nalezaloby odjac od punktow pomiarowych
Go to the top of the page
+Quote Post
FiDO
post
Post #85





Grupa: Przyjaciele php.pl
Postów: 1 717
Pomógł: 0
Dołączył: 12.06.2002
Skąd: Wolsztyn..... Studia: Zielona Góra

Ostrzeżenie: (0%)
-----


A XDebug czy profiler, ktory jest w Zendzie ?
Go to the top of the page
+Quote Post
hwao
post
Post #86


Developer


Grupa: Moderatorzy
Postów: 2 844
Pomógł: 20
Dołączył: 25.11.2003
Skąd: Olkusz




Cytat(FiDO @ 2006-02-21 20:47:36)
A XDebug czy profiler, ktory jest w Zendzie ?

xdebug, nie mam pojecia jak dziala ten klient do niego.... (jak analizowac, ect.. jak ktos uzywal moze napisze how to (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) )

a do tego zend'a to jak stawialem sam apacza to smigal w Wampie nie chce za nic sie to odpalic...
Go to the top of the page
+Quote Post
aleksander
post
Post #87





Grupa: Przyjaciele php.pl
Postów: 742
Pomógł: 0
Dołączył: 14.12.2003
Skąd: Gdańsk, Trójmiasto

Ostrzeżenie: (0%)
-----


profilera xdebug pod php5 nie ma. hwao apd uzywam i jestem zadowolony. po szczegóły => jabb
Go to the top of the page
+Quote Post
FiDO
post
Post #88





Grupa: Przyjaciele php.pl
Postów: 1 717
Pomógł: 0
Dołączył: 12.06.2002
Skąd: Wolsztyn..... Studia: Zielona Góra

Ostrzeżenie: (0%)
-----


To znowu ja (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

Chcialem poczekac na RC3 OPT, bo w obecnej wersji jest blad z tym co pisalem wyzej, ale cos doczekac sie nie moge (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) Wprowadzilem pare malych zmian, aby kod byl troche czytelniejszy, no i teraz przy wlaczonym cachowaniu nie pobieraja sie dane (wczesniej sie pobieraly mimo wlaczonego cachowania, wiec niepotrzebny narzut). Spowodowalo to lekkiego boosta w testach z cachem (tam gdzie jest on dostepny), no ale dziwne to raczej nie jest.
Dodalem tez nowy szablon, ktory rozni sie od pierwszego tylko tym, ze tablica, po ktorej ten szablon iteruje zawiera obiekty, a nie tablice asocjacyjne.

Ponizej zamieszczam nowe wyniki.
Kod
Cache = 0
Template = tpl_1.html

Testing Chameleon 1.1.0 CVS            => skipped
Testing Chameleon 1.1.5                => skipped
Testing Chameleon 1.2.0                =>  100.00 requests/s
Testing Nemesis 1.3.0b                 =>  137.14 requests/s
Testing OPT 1.0.0 RC2                  => skipped
Testing OPT 1.0.0 RC2 Lite             => skipped
Testing Savant 2.4.2                   =>  126.32 requests/s
Testing SmartTemplate 1.0.2            => skipped
Testing Smarty 2.6.12                  =>   71.11 requests/s
Testing Smarty Light 2.2.11            =>   57.14 requests/s

Cache = 1
Template = tpl_1.html

Testing Chameleon 1.1.0 CVS            => skipped
Testing Chameleon 1.1.5                => skipped
Testing Chameleon 1.2.0                =>  106.67 requests/s
Testing Nemesis 1.3.0b                 =>  290.91 requests/s
Testing OPT 1.0.0 RC2                  => skipped
Testing OPT 1.0.0 RC2 Lite             => skipped
Testing Savant 2.4.2                   =>  126.32 requests/s
Testing SmartTemplate 1.0.2            => skipped
Testing Smarty 2.6.12                  =>  117.07 requests/s
Testing Smarty Light 2.2.11            =>  162.71 requests/s

Cache = 0
Template = tpl_2.html

Testing Chameleon 1.1.0 CVS            =>   76.80 requests/s
Testing Chameleon 1.1.5                =>  102.13 requests/s
Testing Chameleon 1.2.0                =>   97.96 requests/s
Testing Nemesis 1.3.0b                 =>  162.71 requests/s
Testing OPT 1.0.0 RC2                  =>  100.00 requests/s
Testing OPT 1.0.0 RC2 Lite             =>  109.09 requests/s
Testing Savant 2.4.2                   =>  123.08 requests/s
Testing SmartTemplate 1.0.2            =>  165.52 requests/s
Testing Smarty 2.6.12                  =>   87.27 requests/s
Testing Smarty Light 2.2.11            =>  128.00 requests/s

Cache = 1
Template = tpl_2.html

Testing Chameleon 1.1.0 CVS            =>   76.80 requests/s
Testing Chameleon 1.1.5                =>  102.13 requests/s
Testing Chameleon 1.2.0                =>   97.96 requests/s
Testing Nemesis 1.3.0b                 =>  223.26 requests/s
Testing OPT 1.0.0 RC2                  =>  123.08 requests/s
Testing OPT 1.0.0 RC2 Lite             =>  110.34 requests/s
Testing Savant 2.4.2                   =>  124.68 requests/s
Testing SmartTemplate 1.0.2            =>  162.71 requests/s
Testing Smarty 2.6.12                  =>   93.20 requests/s
Testing Smarty Light 2.2.11            =>  110.34 requests/s

Cache = 0
Template = tpl_3.html

Testing Chameleon 1.1.0 CVS            => skipped
Testing Chameleon 1.1.5                => skipped
Testing Chameleon 1.2.0                => skipped
Testing Nemesis 1.3.0b                 =>  128.00 requests/s
Testing OPT 1.0.0 RC2                  => skipped
Testing OPT 1.0.0 RC2 Lite             => skipped
Testing Savant 2.4.2                   =>  115.66 requests/s
Testing SmartTemplate 1.0.2            => skipped
Testing Smarty 2.6.12                  =>   66.67 requests/s
Testing Smarty Light 2.2.11            => skipped

Cache = 1
Template = tpl_3.html

Testing Chameleon 1.1.0 CVS            => skipped
Testing Chameleon 1.1.5                => skipped
Testing Chameleon 1.2.0                => skipped
Testing Nemesis 1.3.0b                 =>  266.67 requests/s
Testing OPT 1.0.0 RC2                  => skipped
Testing OPT 1.0.0 RC2 Lite             => skipped
Testing Savant 2.4.2                   =>  118.52 requests/s
Testing SmartTemplate 1.0.2            => skipped
Testing Smarty 2.6.12                  =>  115.66 requests/s
Testing Smarty Light 2.2.11            => skipped


I zrodelka...
http://willow.iie.uz.zgora.pl/~ipatalas/dev/tpl_bench_AB.rar

oraz dla windowsa minimalna wersja narzedzi potrzebnych do automatycznego wykonywania testu:

http://willow.iie.uz.zgora.pl/~ipatalas/dev/unxutils.rar (wszystkie pliki oprocz cygwin1.dll oraz sh.exe musza byc gdzies w %PATH%)

Wywolanie testu polega na odpaleniu konsoli i wpisaniu w tym katalogu sh test.sh. Nie testowalem tego pod unixami, wiec prosze kogos o sprawdzenie w miare mozliwosci tego skryptu.

Zapraszam do potestowania u siebie oraz do ewentualnego uzupelnienia szablonow tam gdzie brakuja jak ktos potrafi i ma czas. Pomysly na rozbudowanie szablonow lub dodanie nowych rowniez mile widziane (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
sobstel
post
Post #89





Grupa: Zarejestrowani
Postów: 853
Pomógł: 25
Dołączył: 27.08.2003
Skąd: Katowice

Ostrzeżenie: (0%)
-----


Cytat(aleksander @ 2006-02-21 22:02:53)
profilera xdebug pod php5 nie ma. hwao apd uzywam i jestem zadowolony. po szczegóły => jabb

w xdebug2 jest profiler! http://xdebug.org/docs-profiling2.php
wyniki dzialana pfoilera mozna odczytac za pomoca KCacheGrind i sa bardzo ladnie graficznie i przejrzyscie przedstawione. polecam! (pod Windows jest jakas alternatywa, ale nie wiem jaka, pisze gdzies na stronie XDebuga)

apd chcialem srpobowac ale po prostu "wywala" sie u mnie na php 5.1.2, wiec zostalem przy XDebug.
Go to the top of the page
+Quote Post
NetJaro
post
Post #90





Grupa: Zarejestrowani
Postów: 475
Pomógł: 0
Dołączył: 1.04.2005
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Mogę wiedzieć, jak czytać te wyniki? Co to znaczy 114,4 requests/s ? (coś tam na sekundę (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) )
Go to the top of the page
+Quote Post
Bastion
post
Post #91





Grupa: Zarejestrowani
Postów: 505
Pomógł: 0
Dołączył: 8.01.2005

Ostrzeżenie: (0%)
-----


114 zapytan na sekunde , czyli 114 wykonanych odpowiedzi Apache'a (wyslań strony do klineta)
Go to the top of the page
+Quote Post
NetJaro
post
Post #92





Grupa: Zarejestrowani
Postów: 475
Pomógł: 0
Dołączył: 1.04.2005
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Tzn. czym więcej tym gorzej (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) ?
Go to the top of the page
+Quote Post
Bastion
post
Post #93





Grupa: Zarejestrowani
Postów: 505
Pomógł: 0
Dołączył: 8.01.2005

Ostrzeżenie: (0%)
-----


im wiecej tym lepiej (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
NetJaro
post
Post #94





Grupa: Zarejestrowani
Postów: 475
Pomógł: 0
Dołączył: 1.04.2005
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


:| Dziwne.. a gdy skipped, to za dużo (IMG:http://forum.php.pl/style_emoticons/default/snitch.gif) ?
Go to the top of the page
+Quote Post
Bastion
post
Post #95





Grupa: Zarejestrowani
Postów: 505
Pomógł: 0
Dołączył: 8.01.2005

Ostrzeżenie: (0%)
-----


a gdy skipped tzn ze klasa nie potrafila dokonczyc testu, badz nawet go zaczac - z powodow np. takich ze czegos nie obsluguje co w danym tescie jest konieczne
Go to the top of the page
+Quote Post
FiDO
post
Post #96





Grupa: Przyjaciele php.pl
Postów: 1 717
Pomógł: 0
Dołączył: 12.06.2002
Skąd: Wolsztyn..... Studia: Zielona Góra

Ostrzeżenie: (0%)
-----


Dokladnie tak.
Skipped to jest, gdy dla danego testu brakuje w ogole szablonu albo z powodu braku potrzebnej funkcjonalnosci, albo z powodu braku wiedzy u mnie na temat obslugi tej funkcjonalnosci (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
OPT bedzie uzupelniony o brakujace testy jak tylko wyjdziep poprawiona wersja. Podobno ma tez dostac malego kopa wydajnosciowego.. zobaczymy. Co do reszty brakujacych testow to albo nie moglem znalezc dokumentacji do danego systemu albo znalazlem i nie bylo w nim nic o potrzebnej funkcjonalnosci.
Nadal apeluje o sprawdzenie tego testu u kogos na linuxie/unixie, jestem ciekaw czy proporcje wynikow sie zachowaja...
Go to the top of the page
+Quote Post
Bastion
post
Post #97





Grupa: Zarejestrowani
Postów: 505
Pomógł: 0
Dołączył: 8.01.2005

Ostrzeżenie: (0%)
-----


Kod
Slackware Linux / P4 HT 2800MHz / 512MB / ApacheBench, Version 1.3d / php 5.1.2


Kod
Cache = 0
Template = tpl_1.html

Testing Chameleon 1.1.5                => skipped
Testing Chameleon 1.2.0                =>  109.90 requests/s
Testing Chameleon 1.1.0 CVS            => skipped
Testing Nemesis 1.3.0b                 =>  156.09 requests/s
Testing OPT 1.0.0 RC2 Lite             => skipped
Testing OPT 1.0.0 RC2                  => skipped
Testing Savant 2.4.2                   =>  132.63 requests/s
Testing SmartTemplate 1.0.2            => skipped
Testing Smarty Light 2.2.11            =>   77.96 requests/s
Testing Smarty 2.6.12                  =>   63.13 requests/s

Cache = 1
Template = tpl_1.html

Testing Chameleon 1.1.5                => skipped
Testing Chameleon 1.2.0                =>   107.94 requests/s
Testing Chameleon 1.1.0 CVS            => skipped
Testing Nemesis 1.3.0b                 =>  311.20 requests/s
Testing OPT 1.0.0 RC2 Lite             => skipped
Testing OPT 1.0.0 RC2                  => skipped
Testing Savant 2.4.2                   =>  130.55 requests/s
Testing SmartTemplate 1.0.2            => skipped
Testing Smarty Light 2.2.11            =>  161.81 requests/s
Testing Smarty 2.6.12                  =>   98.88 requests/s

Cache = 0
Template = tpl_2.html

Testing Chameleon 1.1.5                =>   99.07 requests/s
Testing Chameleon 1.2.0                =>   94.87 requests/s
Testing Chameleon 1.1.0 CVS            =>   59.17 requests/s
Testing Nemesis 1.3.0b                 =>  163.40 requests/s
Testing OPT 1.0.0 RC2 Lite             =>  104.90 requests/s
Testing OPT 1.0.0 RC2                  =>   90.47 requests/s
Testing Savant 2.4.2                   =>  119.71 requests/s
Testing SmartTemplate 1.0.2            =>  171.23 requests/s
Testing Smarty Light 2.2.11            =>  127.77 requests/s
Testing Smarty 2.6.12                  =>   73.28 requests/s

Cache = 1
Template = tpl_2.html

Testing Chameleon 1.1.5                =>   97.87 requests/s
Testing Chameleon 1.2.0                =>   99.16 requests/s
Testing Chameleon 1.1.0 CVS            =>   58.53 requests/s
Testing Nemesis 1.3.0b                 =>  271.25 requests/s
Testing OPT 1.0.0 RC2 Lite             =>  106.01 requests/s
Testing OPT 1.0.0 RC2                  =>  114.07 requests/s
Testing Savant 2.4.2                   =>  118.39 requests/s
Testing SmartTemplate 1.0.2            =>  172.02 requests/s
Testing Smarty Light 2.2.11            =>  121.85 requests/s
Testing Smarty 2.6.12                  =>   94.82 requests/s

Cache = 0
Template = tpl_3.html

Testing Chameleon 1.1.5                => skipped
Testing Chameleon 1.2.0                => skipped
Testing Chameleon 1.1.0 CVS            => skipped
Testing Nemesis 1.3.0b                 =>  165.93 requests/s
Testing OPT 1.0.0 RC2 Lite             => skipped
Testing OPT 1.0.0 RC2                  => skipped
Testing Savant 2.4.2                   =>  133.69 requests/s
Testing SmartTemplate 1.0.2            => skipped
Testing Smarty Light 2.2.11            => skipped
Testing Smarty 2.6.12                  =>   62.47 requests/s

Cache = 1
Template = tpl_3.html

Testing Chameleon 1.1.5                => skipped
Testing Chameleon 1.2.0                => skipped
Testing Chameleon 1.1.0 CVS            => skipped
Testing Nemesis 1.3.0b                 =>  328.95 requests/s
Testing OPT 1.0.0 RC2 Lite             => skipped
Testing OPT 1.0.0 RC2                  => skipped
Testing Savant 2.4.2                   =>  134.05 requests/s
Testing SmartTemplate 1.0.2            => skipped
Testing Smarty Light 2.2.11            => skipped
Testing Smarty 2.6.12                  =>  102.25 requests/s
Go to the top of the page
+Quote Post
NetJaro
post
Post #98





Grupa: Zarejestrowani
Postów: 475
Pomógł: 0
Dołączył: 1.04.2005
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Skoro.. "czym więcej tym lepiej" to Twoja klasa słabo wyszła..
Go to the top of the page
+Quote Post
Bastion
post
Post #99





Grupa: Zarejestrowani
Postów: 505
Pomógł: 0
Dołączył: 8.01.2005

Ostrzeżenie: (0%)
-----


W porownaniu z moja to zwykle smarty slabo wyszlo, ale po rozmowach z FiDO doszedlem do wniosku ze tagi to lipia - i trzeba przerzucic sie na kompilacje (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) tak wiec jeszcze sie odezwe z moim "gadem" (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Go to the top of the page
+Quote Post
NetJaro
post
Post #100





Grupa: Zarejestrowani
Postów: 475
Pomógł: 0
Dołączył: 1.04.2005
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


(IMG:http://forum.php.pl/style_emoticons/default/sad.gif) (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)

A ja szukam wlasnie jakiegos systemu dobrego, bo pisze duzo projekt.. (IMG:http://forum.php.pl/style_emoticons/default/sad.gif) Czekam z WIELKĄ NADZIJĄ(IMG:http://forum.php.pl/style_emoticons/default/exclamation.gif)
Go to the top of the page
+Quote Post

7 Stron V  « < 3 4 5 6 7 >
Closed TopicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 29.12.2025 - 08:21