Hi All,
Running code which is same on v11 and v15. The v15 server is much faster
one of new mac cylinder machines
I am running to to send and receive blobs of various sizes. Since the code
is identical any ideas why v15 would be so much slower
Code for small blob
$tTestData:=("X"*$iSmallSize) // build small sample of data
// Small test...
*SET BLOB SIZE*(ut_TestBlob;0)
*VARIABLE TO BLOB*($tTestData;ut_TestBlob)
*MESSAGE*(*Char*(Carriage return)+"Starting small test")
// repeat 10 times to generate averages
*For *($i;1;10)
$iStartMils:=*Milliseconds*
*SET PROCESS VARIABLE*(ut_iPerformanceProcess;ut_TestBlob;ut_TestBlob)
*GET PROCESS VARIABLE*(ut_iPerformanceProcess;ut_TestBlob;ut_TestBlob)
$iEndMils:=*Milliseconds*
$aiSmall{$i}:=$iEndMils-$iStartMils
*MESSAGE*(*Char*(Carriage return)+"Small test "+*String*($i)+": "+*String*(
$aiSmall{$i})+" ms")
code for medium blob
$tTestData:=("X"*1024) // build 1K's worth of data
// Medium test...
*MESSAGE*(*Char*(Carriage return)+"Building medium test data")
*SET BLOB SIZE*(ut_TestBlob;0)
*For *($i;1;$iMediumSize)
*VARIABLE TO BLOB*($tTestData;ut_TestBlob;*)
*End for *
*MESSAGE*(*Char*(Carriage return)+"Starting medium test")
code for large blob
*SET BLOB SIZE*(ut_TestBlob;0)
*MESSAGE*(*Char*(Carriage return)+"Building large test data")
*For *($i;1;$iLargeSize)
*VARIABLE TO BLOB*($tTestData;ut_TestBlob;*)
*End for *
*This is based upon code from 2004 from *Knowledge Sharing Systems, Inc.
Below are the results,
v11 on mac
Performance test conducted on 1/17/17 at 13:14:15
by Designer from macosx-virtual
Sizes: 0.125/512/2000
Small test: 2 2 2 2 2 8 2 4 1 2
Medium test: 768 480 754 138 167 735 139 379 409 154
Large test: 1419 694 956 1155 1423 958 832 2125 1318 771
Average Low High
Small 3 1 8
Medium 412 138 768
Large 1165 694 2125
v 15 on mac
Performance test conducted on 1/17/17 at 13:19:20
by Designer from Darlek-10-7
Sizes: 0.125/512/2000
Small test: 4 4 8 5 4 5 4 4 3 4
Medium test: 365 324 634 566 384 370 440 350 374 1124
Large test: 1800 2183 1809 2612 1923 2498 1202 1623 2019 1452
Average Low High
Small 4 3 8
Medium 493 324 1124
Large 1912 1202 2612
v15 on PC
Performance test conducted on 1/17/2017 at 13:49:50
by Designer from CHARLESMILLBA77
Sizes: 0.125/512/2000
Small test: 3 3 2 2 2 2 2 2 2 3
Medium test: 279 676 604 545 819 1054 613 861 1200 627
Large test: 1894 1483 1326 2329 1895 1395 2091 1615 1644 1711
Average Low High
Small 2 2 3
Medium 728 279 1200
Large 1738 1326 2329
Thanks and regards
Chuck
--
-----------------------------------------------------------------------------------------
Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
Informed Solutions, Inc.
Brookline, MA 02446 USA Registered 4D Developer
Providers of 4D, Sybase & SQL Sever connectivity
http://www.informed-solutions.com
-----------------------------------------------------------------------------------------
This message and any attached documents contain information which may be
confidential, subject to privilege or exempt from disclosure under
applicable law. These materials are intended only for the use of the
intended recipient. If you are not the intended recipient of this
transmission, you are hereby notified that any distribution, disclosure,
printing, copying, storage, modification or the taking of any action in
reliance upon this transmission is strictly prohibited. Delivery of this
message to any person other than the intended recipient shall not
compromise or waive such confidentiality, privilege or exemption
from disclosure as to this communication.
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************