English
Forum

performance-Messung for Cheetah2

 

Stefan
Schnell
Hello Community,
following Listings have I for performance-Messung of Cheetah2 uses:
CompileMarkSeparation
-Begin-----------------------------------------------------------------
 $U Cheetah2.Unit.pcu
-Occupy resources----------------------------------------------------
xdbUseDLL
-Declare variables---------------------------------------------------
Declare FileName$, hdb&, Loop$, Adress&, Data$
FileName$ = "Test.dbf"
-Create string with data---------------------------------------------
Randomize

WhileLoop 1, 4096, 1

    Data$ = Data$ + @Chr$(@Rnd(96) + 31)

EndWhile

-Create database-----------------------------------------------------
xdbCreate(@Addr(FileName$), "ID,N,9,0;MEMO,M,10,0")
-Open database-------------------------------------------------------
hdb& = xdbOpen(@Addr(FileName$), "")
-Add 20000 records with data-----------------------------------------

WhileLoop 1, 20000, 1

    xdbClearBuffer(hdb&)
    Loop$ = @Str$(&Loop)
    xdbAssignField(hdb&, "ID", 0, @Addr(Loop$))
    xdbAssignField(hdb&, "MEMO", 0, @Addr(Data$))
    xdbAppendRecord(hdb&)

EndWhile

---------------------------------------------------------------------
Print
Print "Press any key to exit..."
WaitKey
-Close database------------------------------------------------------
xdbClose(hdb&)
-Free resources------------------------------------------------------
xdbFreeDLL
-End-------------------------------------------------------------------
End

so becomes a data base, bestehend a ID and one Memo-area with 20.000 Datensätzen created. each Memo-area is with one String, the 4096 Bytes big is, filled. The data base becomes 400.098 Bytes big and the pertinent Memo-boxes 92.160.002 Bytes (means 87,8 Megabyte).

to performance-Messung have I the following Program uses:
CompileMarkSeparation
-Begin-----------------------------------------------------------------
 $I DbgView.inc
 $u Cheetah2.Unit.pcu
-Occupy resources----------------------------------------------------
xdbUseDLL
-Declare variables---------------------------------------------------
Declare FileName$, hdb&, Data$, RecNo&
FileName$ = "Test.dbf"
-Open database-------------------------------------------------------
hdb& = xdbOpen(@Addr(FileName$), "")
-performance Test----------------------------------------------------
Randomize

WhileLoop 1, 200, 1

    RecNo& = @Rnd(19999) + 1
    DbgPrint "Go " + @Str $(RecNo&)
    xdbGetRecord(hdb&, RecNo&)
    Data$ = xdbFieldValue(hdb&, "MEMO", 0)
    DbgPrint "Ready"

EndWhile

-Close database------------------------------------------------------
xdbClose(hdb&)
-Free resources------------------------------------------------------
xdbFreeDLL
-End-------------------------------------------------------------------
End

here jumping the program 200 time to a beliebigen Datensatz and reads this from. for the jumping and Reading benötig Cheetah, with XProfan in the interpreter mode, ca. 0,025 sec.
shining still integrally acceptable To his.
Greeting
Stefan
 
10/28/04  
 




Normann
Strübli
Hi Stefan,

wished the whole by me too test times but the Include Dbgview.inc have I
somehow not found - forget .

How is because your Rechnerkonfiguration?
on the Homepage of Planetsquires can itself your Wrapper incidentally not any more
runterladen - Paul ma bescheidgeben?

Greeting
Normann
 
10/28/04  
 




Ragnar
Rehbein
i want none glaubenskrieg begin... but:

with the MS SQL-Server see The times similar from.

50 ms pub
200 ms over networking
2 ms over network if for request the autoincrement one index staid becomes !!!!

as MSDE free, very well documents, without DLL in profane useable, for almost everything I so white over datenbanken almost fehlerfrei and super steady.

to info one testprogramm for MSDE:
CompileMarkSeparation
print sqlinit(("Driver={SQL Server};Server=ragnar3;UID=sa;PWD=;Database=ordicomdb;"))
declare data$
Randomize
data$ = mkstr$("ABCD",1000)

WhileLoop 1, 4096, 1

    Data$ = Data$ + @Chr$(@Rnd(96) + 31)

EndWhile

data$ = translate$(data$,"","")
sqlexec "drop table test",0
sqlexec "create table test (autoinc int identity, text varchar(5000))",0
print data$
cls

whileloop 1,20000

    locate 0,0
    print &loop
    sqlexec "insert into test (text) values ("+Data$+") ",1
    clearlist

endwhile

decimals 0
declare time&
time& = &gettickcount

whileloop 1,100

    clearlist
    sqlexec "select text from test where autoinc = "+str$(rnd(19999)+1),1
    data$ = listboxitem$(2)

endwhile

print "time: ",(&gettickcount-time&)/100
waitinput
print data$
10/28/04  
 




Stefan
Schnell
Hello Normann,

>but the Include Dbgview.inc have I somehow not found

to langer Time have I time in the Profan-Forum DebugView (of sysinternal) pictured and moreover a suitable Include-File, around the Debuggen with PrfDebug and a suitable spending in DebugView To vereinfachen. here The DbgView.inc for you:
CompileMarkSeparation
-Begin-----------------------------------------------------------------
-External functions--------------------------------------------------
Def @OutputDebugStringA(1) !"KERNEL32.DLL", "OutputDebugStringA"
Def @OutputDebugStringW(1) !"KERNEL32.DLL", "OutputDebugStringW"
Def @OutputDebugString(1) !"KERNEL32.DLL", "OutputDebugStringA"
-Procedure DbgPrint--------------------------------------------------

Proc DbgPrint

    Parameters PrintString$
    PrintString$ = PrintString$ + @Chr$(0)
    @OutputDebugStringA(@Addr(PrintString$))

EndProc

-Procedure DbgOut----------------------------------------------------

Proc DbgOut

    Parameters PrintString$
    DebugOut 1, PrintString$

EndProc

-Procedure DbgStop---------------------------------------------------

Proc DbgStop

    @Set("DebugMode", 2)

EndProc

-Procedure DbgGo-----------------------------------------------------

Proc DbgGo

    If %PCount = 0

        @Set("DebugMode", 0)

    Else

        Parameters Mode&
        @Set("DebugMode", Mode&)

    EndIf

EndProc

-Procedure DbgAssert-------------------------------------------------

Proc DbgAssert

    Parameters Condition&

    If Condition&

        @Set("DebugMode", 2)

    EndIf

EndProc

-End----------------------------------------------------------------s2>---

>How is because your Rechnerkonfiguration?

Getest have I the program now several Rechnern and Betriebssystemen:

WinXP Prof, HP, 1,6 GHz, 256 MByte RAM (the were The vorhandenen Results)
WinXP Home, Brandy, 2 GHz, 256 MByte RAM (was yet faster, 0,00xy sec)
Win 95 OSR 2, NoName, 266 MHz, 256 MByte RAM (was explicit slower)

any Results were however, related on The Rechnerkonfiguration, acceptable. :+)--

>on the Homepage of Planetsquires can itself your Wrapper incidentally not any more
runterladen

have Paul today tommorrow a slight modified Wrapper gesendet, füge it here as Attachment with.

Hello Ragnar,

>i want none glaubenskrieg begin... but:

I find that it a question the Einsatzes is. you have right, what The Microsoft Database Engine angeht, steady, free, quick and erprobt. a integrally important reason stops I but against: want You one customers really zumuten whom MSDE To install if only a small Datenbankinstallation ansteht? and the see I as klaren benefit of Cheetah, squat and requires of users No further activities. it comes, my visibility the items, even hereon on, for whom object or. which Zielgruppe the system certainly his should and here has Cheetah likewise How MSDE his Segment.

Greeting
Stefan
 
10/29/04  
 




Stefan
Schnell
Hello Community,
Ingo made me recently in a Email on this Difference attentive, here small comparison of Cheetah To XProfan, the me yourself something surprised has:

lay out of 20000 Datensätzen à 3 boxes
Cheetah with XProfan in the Interpreter-mode 283 sec
XProfan in the Interpreter-mode 63 sec
Cheetah with XProfan with kompilierter File 41 sec
XProfan with kompilierter File 12 sec
Cheetah with XProfan as EXE 39 sec
XProfan as EXE 11 sec.

means, klarer Geschwindigkeitssieger is XProfan.

in the employment with XProfan is as Ansatz very To viewing whether The of XProfan offered functions suffice or not. should, straight in reference on Memo-boxes or others Feldtypen, further functions desired his, can Cheetah a gewinnbringende appendix his.

Greeting
Stefan
 
04/08/05  
 




Normann
Strübli
Hello Stefan - Hello Community,

there Cheetah of my opinion to definitiv still The best data base is (the Performanceunterschied can itself of my opinion to only therefore explain, the XProfan for Dll-Aufrufe too long needed )
have I a good Message for ALLE The Cheetah not yet uses having - because To valuable :

Cheetah is now FREEWARE ! ! !

means runterladen (Stefans Wrapper for XProfan not forget) and keen his.

Have fun with it.
 
05/01/05  
 




CB
circa you The Search abzukürzen:
[...] 

Christian
 
XProfan 8/9.1, Win XP, AMD 64/3200
05/01/05  
 




Normann
Strübli
Mist! - Yes very, whom Link want I still too post! thanks Chistian.
 
05/01/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.654 Views

Untitledvor 0 min.

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie