Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Need confirmation on thinCore speed

  1. #1
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,782
    Rep Power
    10

    Need confirmation on thinCore speed

    Hi all,

    I think I've got some more speed improvements in thinBasic Core, enough significant to ask you for some tests.
    If you have some spare time, can you please download attached thinCore.dll file (copy over the one you will find into \thinBasic\ directory) and make some speed tests using the scripts you will find into \thinBasic\SampleScripts\General\Speed\ directory?

    Improvements should be all over the script execution and not specific to some particular situation. Mainly I've changed the way LONG numbers are handled inside Core engine. Previously I was using POKE/PEEK while this core has pointers to LONGs instead. If you will confirm the same improvement I've got (about 5/10%) I will change all other numeric types.

    Thanks a lot
    Eros
    Attached Files Attached Files
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  2. #2

    Re: Need confirmation on thinCore speed

    I ran Four tests, most of them are faster with the new dll.

    If I had remembered to turn my Web browser off during the tests they probably all would be faster, lol.

    The first Four images are BEFORE I changed the dll and last Four are AFTER.

    Operating System: Windows 10 Home 64-bit
    CPU: Intel Celeron N4000 CPU @ 1.10GHz
    Memory: 4.00GB RAM
    Graphics: Intel UHD Graphics 600

  3. #3
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,782
    Rep Power
    10

    Re: Need confirmation on thinCore speed

    Thanks a lot matthew.

    Hey the first test, the one with 100000 different loop type seem very significant! Maybe too much.
    Was the first script executed after some thinBasic run or was it executed as first thinBasic script during the day? It may suffer from some caching.

    Ciao
    Eros

    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  4. #4
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    159

    Re: Need confirmation on thinCore speed

    Here are my results with modified test routines.

    have fun.
    Attached Files Attached Files
    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

  5. #5
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,782
    Rep Power
    10

    Re: Need confirmation on thinCore speed

    Abraxas, no improvements but worst results in your case.
    What a success I've got!

    A little note: in you script USES "CORE" is not needed because loaded by default.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  6. #6

    Re: Need confirmation on thinCore speed

    Quote Originally Posted by ErosOlmi
    ...Was the first script executed after some thinBasic run or was it executed as first thinBasic script during the day? It may suffer from some caching...
    Before I ran the tests I downloaded the new preview version of ThinBASIC.

    It was the first script I ran after installation.
    Operating System: Windows 10 Home 64-bit
    CPU: Intel Celeron N4000 CPU @ 1.10GHz
    Memory: 4.00GB RAM
    Graphics: Intel UHD Graphics 600

  7. #7
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    159

    Re: Need confirmation on thinCore speed

    Eros didnt think I needed it, thanks.

    Can a script call another script?
    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

  8. #8
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,782
    Rep Power
    10

    Re: Need confirmation on thinCore speed

    You can call another script by shelling a new process like any other shell command.
    With thinBasic scripts you cannot make something like "chaining".

    But this is an interesting idea :
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  9. #9

    Re: Need confirmation on thinCore speed

    Eros:

    Attached are some spped test for you.

    Don B.
    Attached Files Attached Files
    XPS 1710

  10. #10
    Super Moderator Petr Schreiber's Avatar
    Join Date
    Aug 2005
    Location
    Brno - Czech Republic
    Posts
    7,129
    Rep Power
    732

    Re: Need confirmation on thinCore speed

    Hi Eros,

    seems nice here, about 10-20% speed increase in loops !
    Just one thing - is it safe to use LONG instead of DWORD for pointers ?

    No GPF or anything, just curious


    Thanks a lot,
    Petr
    Learn 3D graphics with ThinBASIC, learn TBGL!
    Windows 10 64bit - Intel Core i5-3350P @ 3.1GHz - 16 GB RAM - NVIDIA GeForce GTX 1050 Ti 4GB

Page 1 of 2 12 LastLast

Similar Threads

  1. I need a confirmation in speed
    By ErosOlmi in forum Core module
    Replies: 13
    Last Post: 10-03-2007, 00:53

Members who have read this thread: 1

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •