You are not logged in.
Correction:
The results above are for Lazarus 1.7 Win32
Michal
@ab,
2 changes in SynZipFiles.pas:
169: property SizeIn: QWord{cardinal} read FStrm.total_in;
170: property SizeOut: QWord{cardinal} read FStrm.total_out;
and mORMot compiles and run on Lazarus_fpcup 1.7(2016.05.03) Win64
Synopse mORMot Framework Automated tests
------------------------------------------
1. Synopse libraries
1.1. Low level common:
- System copy record: 83 assertions passed 153us
- TRawUTF8List: 130,009 assertions passed 40.94ms
- TDynArray: 1,082,741 assertions passed 251.27ms
- TDynArrayHashed: 1,200,629 assertions passed 109.22ms
- TObjectListHashed: 999,760 assertions passed 288.06ms
- TObjectDynArrayWrapper: 167,501 assertions passed 26.66ms
- TObjArray: 2,016 assertions passed 2.16ms
- Fast string compare: 24 assertions passed 153us
- IdemPropName: 197 assertions passed 130us
! - Url encoding: 100 / 150 FAILED 3.80ms
- GUID: 9,005 assertions passed 7.87ms
- IsMatch: 599 assertions passed 343us
- Soundex: 35 assertions passed 106us
- Numerical conversions: 1,114,237 assertions passed 404.20ms
- crc32c: 30,030 assertions passed 58.07ms
pas 17.82ms 334.8 MB/s fast 2.93ms 1.9 GB/s sse42 1.28ms 4.5 GB/s
- Curr 64: 20,053 assertions passed 1.73ms
- CamelCase: 11 assertions passed 405us
- Bits: 4,774 assertions passed 393us
- Ini files: 7,004 assertions passed 16.27ms
- UTF8: 99,134 assertions passed 550.15ms
- Iso 8601 date and time: 48,021 assertions passed 7.01ms
- Time zones: 407 assertions passed 5.23ms
- Url decoding: 1,100 assertions passed 351us
- Mime types: 30 assertions passed 345us
- TSynTable: 875 assertions passed 4.30ms
- TSynCache: 404 assertions passed 495us
- TSynFilter: 804 assertions passed 1.92ms
- TSynValidate: 677 assertions passed 828us
- TSynLogFile: 42 assertions passed 560us
- TSynUniqueIdentifier: 1,300,002 assertions passed 596.41ms
- TSynDictionary: 119,930 assertions passed 47.87ms
Total failed: 100 / 6,340,284 - Low level common FAILED 2.43s
1.2. Low level types:
- RTTI: 410 assertions passed 355us
- Url encoding: 200 assertions passed 547us
- Encode decode JSON: 283,996 assertions passed 2.08s
- Variants: 48 assertions passed 815us
- Mustache renderer: 144 assertions passed 904.09ms
- TDocVariant: no assertion 761us
- BSON: no assertion 109us
- TSynTableStatement: 206 assertions passed 688us
- TSynMonitorUsage: 1,202 assertions passed 599us
Total failed: 0 / 286,206 - Low level types PASSED 2.99s
1.3. Cryptographic routines:
- Adler32: 1 assertion passed 595us
- MD5: 86 assertions passed 617us
- SHA1: 10 assertions passed 11.47ms
- SHA256: 8 assertions passed 15.17ms
! - AES256: 1 / 17,428 FAILED 411.47ms
cypher 1..2408 bytes with AES-NI: 588us, without: 6.69ms
- RC4: 1 assertion passed 72us
! - Base64: 2 / 11,994 FAILED 106.73ms
- CompressShaAes: 1,683 assertions passed 4.39ms
- TAESPNRG: 9,999 assertions passed 44.04ms
Total failed: 3 / 41,210 - Cryptographic routines FAILED 597.53ms
1.4. Compression:
- In memory compression: 12 assertions passed 320.54ms
- GZIP format: 19 assertions passed 634.11ms
- ZIP format: 64 assertions passed 2.32s
- SynLZO: 3,006 assertions passed 74.56ms
- SynLZ: 30,217 assertions passed 512.04ms
Total failed: 0 / 33,318 - Compression PASSED 3.87s
2. mORMot
2.1. File based:
- Database direct access: 20,251 assertions passed 118.91ms
- Virtual table direct access: 12 assertions passed 1.23ms
- TSQLTableJSON: 144,070 assertions passed 99.20ms
- TSQLRestClientDB: 608,193 assertions passed 2.76s
- TRecordVersion: 20,060 assertions passed 104.50ms
Total failed: 0 / 792,586 - File based PASSED 3.08s
2.2. File based memory map:
- Database direct access: 20,246 assertions passed 111.90ms
- Virtual table direct access: 12 assertions passed 1.23ms
- TSQLTableJSON: 144,070 assertions passed 94.59ms
- TSQLRestClientDB: 608,192 assertions passed 2.71s
- TRecordVersion: 20,060 assertions passed 108.71ms
Total failed: 0 / 792,580 - File based memory map PASSED 3.03s
2.3. File based WAL:
- Database direct access: 20,251 assertions passed 121.96ms
- Virtual table direct access: 12 assertions passed 1.07ms
- TSQLTableJSON: 144,070 assertions passed 96.17ms
- TSQLRestClientDB: 608,193 assertions passed 2.68s
- TRecordVersion: 20,060 assertions passed 88.50ms
Total failed: 0 / 792,586 - File based WAL PASSED 2.99s
2.4. Memory based:
- Database direct access: 20,246 assertions passed 108.20ms
- Virtual table direct access: 12 assertions passed 973us
- TSQLTableJSON: 144,070 assertions passed 92.14ms
- TSQLRestClientDB: 676,500 assertions passed 3.46s
- TRecordVersion: 20,060 assertions passed 104.09ms
- RTree: 140,000 assertions passed 722.08ms
- Shard write: 10,602 assertions passed 208.20ms
- Shard read: 140,001 assertions passed 324.69ms
- Shard read after purge: 114,003 assertions passed 267.85ms
Total failed: 0 / 1,265,494 - Memory based PASSED 5.29s
2.5. Basic classes:
! - TSQLRecord: 5 / 88 FAILED 520us
- TSQLRecordSigned: 200 assertions passed 6.66ms
- TSQLModel: 16 assertions passed 384us
! - TSQLRestServerFullMemory: 370,119 / 640,135 FAILED 4.22s
Total failed: 370,124 / 640,439 - Basic classes FAILED 4.24s
2.6. Client server access:
- TSQLHttpServer: 2 assertions passed 3.94ms
using HTTP API 2.0
- TSQLHttpClient: 3 assertions passed 13.41ms
using TSQLHttpClientWinHTTP
- HTTP client keep alive: 3,087 assertions passed 213.66ms
4818 B, first 1.87ms, done 201.36ms i.e. 4966/s, aver. 201us, 23.2 MB/s
- HTTP client multi connect: 3,087 assertions passed 199.37ms
4818 B, first 378us, done 190.00ms i.e. 5262/s, aver. 190us, 24.6 MB/s
- HTTP client encrypted: 3,087 assertions passed 239.37ms
4818 B, first 347us, done 230.32ms i.e. 4341/s, aver. 230us, 20.3 MB/s
- Named pipe access: 3,089 assertions passed 560.16ms
4818 B, first 256.78ms, done 94.43ms i.e. 10589/s, aver. 94us, 49.5 MB/s
! - Local window messages: 1 / 2 FAILED 1.78ms
- Direct in process access: 3,056 assertions passed 49.91ms
4818 B, first 64us, done 40.93ms i.e. 24430/s, aver. 40us, 114.2 MB/s
- HTTP several DB servers: 9,604 assertions passed 689.63ms
4818 B, first 331us, done 200.60ms i.e. 4984/s, aver. 200us, 23.3 MB/s
4818 B, first 313us, done 195.54ms i.e. 5114/s, aver. 195us, 23.9 MB/s
4818 B, first 321us, done 195.52ms i.e. 5114/s, aver. 195us, 23.9 MB/s
Total failed: 1 / 25,017 - Client server access FAILED 1.98s
2.7. Service oriented architecture:
- Weak interfaces: 56 assertions passed 458us
! - Service initialization: 1 / 17 FAILED 1.83ms
- Direct call: 537,186 assertions passed 30.05ms
! - Server side: 1 / 3 FAILED 150us
! Service oriented architecture - Client side REST
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create(): IComplexCalculator interface or TSQLRestRouti
ngREST routing not supported by server: {
"errorCode":400,
"errorText":"Bad Request"
}
! Service oriented architecture - Client side REST as JSON object
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Client side REST sessions stats
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
- Client side REST locked: 3 assertions passed 1.65ms
- Client side REST main thread: 3 assertions passed 227us
! Service oriented architecture - Client side REST background thread
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Client side REST weak authentication
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Client side REST basic authentication
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Client side REST custom record layout
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Client side REST service log to DB
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Client side JSONRPC
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Test over HTTP
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create(): IComplexCalculator interface or TSQLRestRouti
ngREST routing not supported by server: {
"errorCode":400,
"errorText":"Bad Request"
}
- Security: 135 assertions passed 1.58ms
- Mocks and stubs: 30,030 assertions passed 57.22ms
Total failed: 2 / 567,460 - Service oriented architecture FAILED 114.13ms
2.8. Bidirectional remote connection:
- Websockets JSON protocol: 60 assertions passed 637us
- Websockets binary protocol: 240 assertions passed 207us
- Run http server: 2 assertions passed 560us
- SOA callback on server side: 4,578 assertions passed 2.25ms
! Bidirectional remote connection - SOA callback via JSON websockets
! Exception EInterfaceFactoryException raised with messsage:
! TInterfacedObjectFakeClient.FakeCall(IBidirService.TestCallback) failed: '{
"errorCode":500,
"error":
{"EAccessViolation":{"EAccessViolation":"Access violation"}}
}'
! Bidirectional remote connection - SOA callback via binary websockets
! Exception EInterfaceFactoryException raised with messsage:
! TInterfacedObjectFakeClient.FakeCall(IBidirService.TestCallback) failed: '{
"errorCode":500,
"error":
{"EAccessViolation":{"EAccessViolation":"Access violation"}}
}'
- TRecordVersion: 20,068 assertions passed 108.62ms
Total failed: 0 / 29,366 - Bidirectional remote connection PASSED 187.22ms
2.9. External database:
- TQuery: 2,003 assertions passed 5.38ms
! External database - SynDBRemote
! Exception ESQLDBRemote raised with messsage:
! You do not have the right to be here
- DB properties persistence: 7 assertions passed 2.09ms
- External records: 2 assertions passed 700us
- Auto adapt SQL: 942 assertions passed 77.30ms
- Crypted database: 253,275 assertions passed 164.30ms
- External via REST: 170,354 assertions passed 809.65ms
- External via virtual table: 170,354 assertions passed 1.30s
- External via REST with change tracking: 180,454 assertions passed 1.79s
- JET database: 7,007 assertions passed 784.41ms
Total failed: 0 / 789,413 - External database PASSED 5.34s
2.10. Multi thread process:
- Create thread pool: 1 assertion passed 2.69ms
- TSQLRestServerDB: 4,822 assertions passed 70.70ms
1=37597/s 2=36751/s 5=38572/s 10=39035/s 30=44528/s 50=37950/s
- TSQLRestClientDB: 4,822 assertions passed 135.48ms
1=32208/s 2=35476/s 5=32229/s 10=31994/s 30=13854/s 50=8084/s
- TSQLRestClientURINamedPipe: 2,412 assertions passed 1.62s
1=1400/s 2=1075/s 5=528/s
! - TSQLRestClientURIMessage: 18 / 40 FAILED 30.58ms
1=224971/s 2=150150/s 5=61776/s 10=39662/s
- Windows API: 4,822 assertions passed 304.55ms
1=5204/s 2=7820/s 5=10075/s 10=10099/s 30=9932/s 50=8795/s
- Socket API: 4,822 assertions passed 211.70ms
1=11047/s 2=15440/s 5=15945/s 10=14800/s 30=11966/s 50=7375/s
- Websockets: 4,822 assertions passed 184.22ms
1=12425/s 2=14321/s 5=14326/s 10=15435/s 30=15443/s 50=11263/s
- Locked: 4,822 assertions passed 134.09ms
1=32488/s 2=33131/s 5=36166/s 10=34322/s 30=13777/s 50=8080/s
- Unlocked: 4,822 assertions passed 73.46ms
1=33596/s 2=35660/s 5=38273/s 10=36866/s 30=41254/s 50=36304/s
- Main thread: 4,822 assertions passed 79.66ms
1=27607/s 2=36825/s 5=36893/s 10=33610/s 30=37047/s 50=34794/s
- Background thread: 4,822 assertions passed 85.53ms
1=27870/s 2=31505/s 5=28477/s 10=30653/s 30=37950/s 50=32234/s
Total failed: 18 / 45,851 - Multi thread process FAILED 2.94s
2.11. DDD shared units:
- User model: 3,276 assertions passed 524us
- Authentication model: 20,006 assertions passed 127.63ms
! - Email validation process: 3 / 55 FAILED 20.40ms
! DDD shared units - User CQRS repository
! Exception EAccessViolation raised with messsage:
! Access violation
2.12. DDD multi thread:
- Delete old database: 1 assertion passed 1.12ms
- Start server: 1 assertion passed 11.54ms
- Single client test: 1,002 assertions passed 200.44ms
- Multi threaded clients test: 21 assertions passed 138.04ms
Total failed: 0 / 1,025 - DDD multi thread PASSED 354.04ms
Using mORMot 1.18.2637 FTS3
Running on Windows 7 64bit SP1 (6.1.7601) with code page 1250
TSQLite3LibraryStatic 3.12.2 with internal MM
Generated with: Free Pascal 3.1.1 compiler
Time elapsed for all tests: 40.09s
Tests performed at 2016-05-09 15:27:22
Total assertions failed for all test suits: 374,919 / 12,504,244
! Some tests FAILED: please correct the code.
Done - Press ENTER to ExitMichal
@ab,
So it happens only for (my) Windows 8.1-64.
In Windows 10 Build 14316(and Delphi 10-Win32) not have those bugs.
Michal
@ab,
So, I registered http.sys just before launch TestSQL3.
Registration of /root:888/+ for http.sys
Registration of /root0:888/+ for http.sys
Registration of /root1:888/+ for http.sys
Registration of /root2:888/+ for http.sys
Registration of /LogService:888/+ for http.sys
Registration of /LogService:8091/+ for http.sys
Registration of /syndbremote:8092/+ for http.sys
Done - Press ENTER to ExitAnd here the course of the test for Windows 8.1-32 and Delphi XE2-32
Synopse mORMot Framework Automated tests
------------------------------------------
1. Synopse libraries
1.1. Low level common:
- System copy record: 83 assertions passed 350us
- TRawUTF8List: 130,009 assertions passed 158.17ms
- TDynArray: 1,082,726 assertions passed 317.00ms
- TDynArrayHashed: 1,200,629 assertions passed 240.76ms
- TObjectListHashed: 999,907 assertions passed 694.36ms
- TObjectDynArrayWrapper: 167,501 assertions passed 37.03ms
- TObjArray: 2,016 assertions passed 3.02ms
- Fast string compare: 24 assertions passed 273us
- IdemPropName: 197 assertions passed 377us
- Url encoding: 150 assertions passed 1.62ms
- GUID: 9,007 assertions passed 5.70ms
- IsMatch: 599 assertions passed 462us
- Soundex: 35 assertions passed 298us
- Numerical conversions: 1,113,007 assertions passed 454.71ms
- crc32c: 20,020 assertions passed 114.34ms
pas 39.13ms 152.4 MB/s fast 4.52ms 1.2 GB/s
- Curr 64: 20,053 assertions passed 2.67ms
- CamelCase: 11 assertions passed 318us
- Bits: 4,774 assertions passed 952us
- Ini files: 7,004 assertions passed 33.62ms
! - UTF8: 14,000 / 133,137 FAILED 2.31s
- Iso 8601 date and time: 48,017 assertions passed 13.01ms
- Time zones: 407 assertions passed 13.87ms
- Url decoding: 1,100 assertions passed 4.74ms
- Mime types: 30 assertions passed 575us
- TSynTable: 875 assertions passed 6.81ms
- TSynCache: 404 assertions passed 535us
- TSynFilter: 1,005 assertions passed 4.59ms
- TSynValidate: 677 assertions passed 2.09ms
- TSynLogFile: 42 assertions passed 5.54ms
- TSynUniqueIdentifier: 1,300,002 assertions passed 1.05s
- TSynDictionary: 119,930 assertions passed 83.27ms
Total failed: 14,000 / 6,363,378 - Low level common FAILED 5.59s
1.2. Low level types:
- RTTI: 410 assertions passed 924us
- Url encoding: 200 assertions passed 1.28ms
- Encode decode JSON: 305,634 assertions passed 306.43ms
- Variants: 48 assertions passed 332us
- Mustache renderer: 144 assertions passed 3.80ms
- TDocVariant: 71,784 assertions passed 201.21ms
- BSON: 245,050 assertions passed 10.70ms
- TSynTableStatement: 206 assertions passed 1.93ms
- TSynMonitorUsage: 1,202 assertions passed 666us
Total failed: 0 / 624,678 - Low level types PASSED 545.49ms
1.3. Big table:
- TSynBigTable: 19,135 assertions passed 139.36ms
- TSynBigTableString: 16,115 assertions passed 39.70ms
- TSynBigTableMetaData: 475,563 assertions passed 2.44s
- TSynBigTableRecord: 375,563 assertions passed 3.59s
Total failed: 0 / 886,376 - Big table PASSED 6.22s
1.4. Synopse PDF:
! - TPdfDocument: 1 / 2 FAILED 9.07ms
- TPdfDocumentGDI: 5 assertions passed 1.00s
Total failed: 1 / 7 - Synopse PDF FAILED 1.01s
1.5. Cryptographic routines:
- Adler32: 1 assertion passed 784us
- MD5: 86 assertions passed 754us
- SHA1: 10 assertions passed 20.74ms
- SHA256: 8 assertions passed 16.57ms
- AES256: 16,816 assertions passed 1.01s
- RC4: 1 assertion passed 219us
- Base64: 11,994 assertions passed 242.65ms
- CompressShaAes: 1,683 assertions passed 8.15ms
- TAESPNRG: 9,999 assertions passed 95.28ms
Total failed: 0 / 40,598 - Cryptographic routines PASSED 1.41s
1.6. Compression:
- In memory compression: 12 assertions passed 621.74ms
- GZIP format: 19 assertions passed 1.20s
- ZIP format: 79 assertions passed 5.21s
- SynLZO: 3,006 assertions passed 174.48ms
- SynLZ: 32,219 assertions passed 984.79ms
Total failed: 0 / 35,335 - Compression PASSED 8.20s
2. mORMot
2.1. File based:
- Database direct access: 20,251 assertions passed 345.33ms
- Virtual table direct access: 12 assertions passed 2.54ms
- TSQLTableJSON: 149,076 assertions passed 330.02ms
- TSQLRestClientDB: 608,193 assertions passed 6.74s
- Regexp function: 6,016 assertions passed 70.40ms
- TRecordVersion: 20,060 assertions passed 203.59ms
Total failed: 0 / 803,608 - File based PASSED 7.69s
2.2. File based memory map:
- Database direct access: 20,246 assertions passed 243.17ms
- Virtual table direct access: 12 assertions passed 1.69ms
- TSQLTableJSON: 149,076 assertions passed 251.17ms
- TSQLRestClientDB: 608,192 assertions passed 6.58s
- Regexp function: 6,016 assertions passed 44.37ms
- TRecordVersion: 20,060 assertions passed 219.30ms
Total failed: 0 / 803,602 - File based memory map PASSED 7.34s
2.3. File based WAL:
- Database direct access: 20,251 assertions passed 272.73ms
- Virtual table direct access: 12 assertions passed 1.51ms
- TSQLTableJSON: 149,076 assertions passed 251.36ms
- TSQLRestClientDB: 608,193 assertions passed 6.68s
- Regexp function: 6,016 assertions passed 40.94ms
- TRecordVersion: 20,060 assertions passed 218.15ms
Total failed: 0 / 803,608 - File based WAL PASSED 7.46s
2.4. Memory based:
- Database direct access: 20,246 assertions passed 231.93ms
- Virtual table direct access: 12 assertions passed 1.23ms
- TSQLTableJSON: 149,076 assertions passed 240.41ms
- TSQLRestClientDB: 676,500 assertions passed 7.79s
- Regexp function: 6,016 assertions passed 43.58ms
- TRecordVersion: 20,060 assertions passed 218.18ms
- RTree: 140,000 assertions passed 1.92s
- Shard write: 10,602 assertions passed 494.50ms
- Shard read: 140,001 assertions passed 703.11ms
- Shard read after purge: 114,003 assertions passed 562.20ms
Total failed: 0 / 1,276,516 - Memory based PASSED 12.22s
2.5. Basic classes:
- TSQLRecord: 88 assertions passed 647us
- TSQLRecordSigned: 200 assertions passed 5.64ms
- TSQLModel: 16 assertions passed 186us
- TSQLRestServerFullMemory: 1,222,461 assertions passed 1.95s
Total failed: 0 / 1,222,765 - Basic classes PASSED 1.96s
2.6. Client server access:
- TSQLHttpServer: 2 assertions passed 5.03ms
using HTTP API 2.0
- TSQLHttpClient: 3 assertions passed 41.48ms
using TSQLHttpClientWinHTTP
- HTTP client keep alive: 3,087 assertions passed 615.72ms
4818 B, first 5.21ms, done 583.57ms i.e. 1713/s, aver. 583us, 8 MB/s
- HTTP client multi connect: 3,087 assertions passed 608.29ms
4818 B, first 862us, done 583.19ms i.e. 1714/s, aver. 583us, 8 MB/s
- HTTP client encrypted: 3,087 assertions passed 679.81ms
4818 B, first 1.00ms, done 641.78ms i.e. 1558/s, aver. 641us, 7.2 MB/s
- Named pipe access: 3,089 assertions passed 787.03ms
4818 B, first 271.82ms, done 289.96ms i.e. 3448/s, aver. 289us, 16.1 MB/s
- Local window messages: 3,088 assertions passed 80.07ms
4818 B, first 153us, done 72.66ms i.e. 13761/s, aver. 72us, 64.3 MB/s
- Direct in process access: 3,056 assertions passed 91.07ms
4818 B, first 72us, done 53.66ms i.e. 18633/s, aver. 53us, 87.1 MB/s
- HTTP several DB servers: 9,604 assertions passed 21.18s
4818 B, first 927us, done 694.30ms i.e. 1440/s, aver. 694us, 6.7 MB/s
4818 B, first 905us, done 576.40ms i.e. 1734/s, aver. 576us, 8.1 MB/s
4818 B, first 877us, done 596.82ms i.e. 1675/s, aver. 596us, 7.8 MB/s
Total failed: 0 / 28,103 - Client server access PASSED 24.10s
2.7. Service oriented architecture:
- Weak interfaces: 56 assertions passed 635us
- Service initialization: 267 assertions passed 4.76ms
- Direct call: 606,537 assertions passed 63.59ms
- Server side: 606,557 assertions passed 62.16ms
- Client side REST: 808,742 assertions passed 1.99s
- Client side REST as JSON object: 808,736 assertions passed 2.10s
- Client side REST sessions stats: 808,736 assertions passed 2.16s
- Client side REST locked: 808,740 assertions passed 2.02s
- Client side REST main thread: 808,740 assertions passed 5.11s
- Client side REST background thread: 808,740 assertions passed 5.35s
- Client side REST weak authentication: 808,736 assertions passed 1.94s
- Client side REST basic authentication: 808,736 assertions passed 2.26s
- Client side REST custom record layout: 808,736 assertions passed 2.09s
- Client side REST service log to DB: 808,736 assertions passed 4.43s
- Client side JSONRPC: 808,736 assertions passed 2.15s
! Service oriented architecture - Test over HTTP
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create(): ICalculator interface or TSQLRestRoutingREST
routing not supported by server: {
"errorCode":403,
"errorText":"Forbidden"
}
- Security: 135 assertions passed 3.72ms
- Mocks and stubs: 30,032 assertions passed 80.70ms
Total failed: 1 / 10,139,699 - Service oriented architecture FAILED 50.82s
2.8. Bidirectional remote connection:
- Websockets JSON protocol: 60 assertions passed 930us
- Websockets binary protocol: 240 assertions passed 370us
- Run http server: 2 assertions passed 920us
- SOA callback on server side: 4,578 assertions passed 9.27ms
- SOA callback via JSON websockets: 4,581 assertions passed 420.36ms
- SOA callback via binary websockets: 4,581 assertions passed 373.63ms
- TRecordVersion: 20,068 assertions passed 296.04ms
Total failed: 0 / 34,110 - Bidirectional remote connection PASSED 1.10s
2.9. External database:
- TQuery: 2,003 assertions passed 12.78ms
- SynDBRemote: 30,095 assertions passed 555.21ms
- DB properties persistence: 7 assertions passed 3.13ms
- External records: 2 assertions passed 460us
- Auto adapt SQL: 942 assertions passed 130.36ms
- Crypted database: 253,275 assertions passed 341.80ms
- External via REST: 170,354 assertions passed 1.82s
- External via virtual table: 170,354 assertions passed 3.87s
- External via REST with change tracking: 180,454 assertions passed 5.21s
- JET database: 7,007 assertions passed 1.31s
Total failed: 0 / 814,493 - External database PASSED 13.28s
2.10. Multi thread process:
- Create thread pool: 1 assertion passed 2.70ms
- TSQLRestServerDB: 4,822 assertions passed 213.04ms
1=11938/s 2=13617/s 5=13704/s 10=14059/s 30=7954/s 50=13980/s
- TSQLRestClientDB: 4,822 assertions passed 1.43s
1=11251/s 2=10278/s 5=5950/s 10=2920/s 30=918/s 50=570/s
- TSQLRestClientURINamedPipe: 2,412 assertions passed 1.49s
1=1157/s 2=1040/s 5=737/s
- TSQLRestClientURIMessage: 3,222 assertions passed 248.07ms
1=5966/s 2=7690/s 5=7826/s 10=6748/s
! - Windows API: 31 / 4,053 FAILED 20.44s
1=21/s 2=1983/s 5=2116/s 10=2049/s 30=926/s 50=856/s
- Socket API: 4,822 assertions passed 1.35s
1=2473/s 2=2790/s 5=2675/s 10=2537/s 30=1270/s 50=986/s
- Websockets: 4,822 assertions passed 1.33s
1=3410/s 2=5122/s 5=3674/s 10=1830/s 30=1506/s 50=754/s
- Locked: 4,822 assertions passed 1.40s
1=11592/s 2=10104/s 5=5919/s 10=2924/s 30=990/s 50=566/s
- Unlocked: 4,822 assertions passed 231.33ms
1=11515/s 2=13801/s 5=13262/s 10=10121/s 30=15026/s 50=7959/s
- Main thread: 4,822 assertions passed 373.82ms
1=9561/s 2=6434/s 5=5128/s 10=8554/s 30=6451/s 50=6479/s
- Background thread: 4,822 assertions passed 279.39ms
1=11184/s 2=13058/s 5=12684/s 10=12759/s 30=14167/s 50=3961/s
Total failed: 31 / 48,264 - Multi thread process FAILED 28.84s
2.11. DDD shared units:
- User model: 3,276 assertions passed 1.23ms
- Authentication model: 20,006 assertions passed 207.54ms
- Email validation process: 55 assertions passed 108.12ms
- User CQRS repository: 57,106 assertions passed 718.19ms
Total failed: 0 / 80,443 - DDD shared units PASSED 1.03s
2.12. DDD multi thread:
- Delete old database: 1 assertion passed 1.38ms
- Start server: 1 assertion passed 77.98ms
! DDD multi thread - Single client test
! Exception EAccessViolation raised with messsage:
! Access violation at address 007C23D2 in module 'TestSQL3.exe'. Read of addres
s 00000000
- Multi threaded clients test: 21 assertions passed 588.07ms
Total failed: 1 / 24 - DDD multi thread FAILED 19.60s
Using mORMot 1.18.2528 FTS3
Running on Windows 8.1 64bit (6.3.9600) with code page 1250
TSQLite3LibraryStatic 3.12.0 with internal MM
Generated with: Delphi XE2 compiler
Time elapsed for all tests: 198.57s
Tests performed at 2016-04-10 13:50:03
Total assertions failed for all test suits: 14,034 / 24,005,607
! Some tests FAILED: please correct the code.
Done - Press ENTER to ExitMichal
...
It is the fault of Windows 8.1-64 (for Delphi XE2-32 in Windows 8.1-64 is similar).
In Delphi XE2 32/64 on Windows 7-64 is fine.
Michal
@qb,
mORMot 1.18.2528
(In Delphi XE2 32/64 is fine)
Synopse mORMot Framework Automated tests
------------------------------------------
1. Synopse libraries
1.1. Low level common:
- System copy record: 83 assertions passed 333us
- TRawUTF8List: 130,009 assertions passed 169.18ms
- TDynArray: 1,082,725 assertions passed 237.87ms
- TDynArrayHashed: 1,200,629 assertions passed 222.48ms
- TObjectListHashed: 999,897 assertions passed 630.57ms
- TObjectDynArrayWrapper: 167,501 assertions passed 41.95ms
- TObjArray: 2,016 assertions passed 2.27ms
- Fast string compare: 24 assertions passed 278us
- IdemPropName: 197 assertions passed 295us
- Url encoding: 150 assertions passed 1.27ms
- GUID: 9,005 assertions passed 2.50ms
- IsMatch: 599 assertions passed 533us
- Soundex: 35 assertions passed 226us
- Numerical conversions: 1,115,446 assertions passed 413.11ms
- crc32c: 20,020 assertions passed 81.03ms
pas 27.39ms 217.7 MB/s fast 4.87ms 1.1 GB/s
- Curr 64: 20,053 assertions passed 2.17ms
- CamelCase: 11 assertions passed 273us
- Bits: 4,774 assertions passed 378us
- Ini files: 7,004 assertions passed 36.50ms
- UTF8: 105,137 assertions passed 1.02s
- Iso 8601 date and time: 48,017 assertions passed 8.50ms
- Time zones: 407 assertions passed 17.43ms
- Url decoding: 1,100 assertions passed 467us
- Mime types: 30 assertions passed 289us
- TSynTable: 875 assertions passed 3.98ms
- TSynCache: 404 assertions passed 272us
- TSynFilter: 1,005 assertions passed 3.17ms
- TSynValidate: 677 assertions passed 1.13ms
- TSynLogFile: 42 assertions passed 1.24ms
- TSynUniqueIdentifier: 1,300,002 assertions passed 676.79ms
- TSynDictionary: 119,930 assertions passed 58.38ms
Total failed: 0 / 6,337,804 - Low level common PASSED 3.66s
1.2. Low level types:
- RTTI: 410 assertions passed 733us
- Url encoding: 200 assertions passed 822us
- Encode decode JSON: 280,786 assertions passed 204.03ms
- Variants: 48 assertions passed 277us
- Mustache renderer: 144 assertions passed 15.53ms
- TDocVariant: 71,784 assertions passed 197.56ms
- BSON: 245,050 assertions passed 9.50ms
- TSynTableStatement: 206 assertions passed 622us
- TSynMonitorUsage: 1,202 assertions passed 610us
Total failed: 0 / 599,830 - Low level types PASSED 439.13ms
1.3. Big table:
- TSynBigTable: 19,234 assertions passed 185.32ms
- TSynBigTableString: 16,238 assertions passed 30.16ms
- TSynBigTableMetaData: 475,563 assertions passed 1.34s
- TSynBigTableRecord: 375,563 assertions passed 1.90s
Total failed: 0 / 886,598 - Big table PASSED 3.46s
1.4. Synopse PDF:
! - TPdfDocument: 1 / 2 FAILED 108.18ms
- TPdfDocumentGDI: 5 assertions passed 1.04s
Total failed: 1 / 7 - Synopse PDF FAILED 1.16s
1.5. Cryptographic routines:
- Adler32: 1 assertion passed 899us
- MD5: 86 assertions passed 683us
- SHA1: 10 assertions passed 11.07ms
- SHA256: 8 assertions passed 14.26ms
- AES256: 16,816 assertions passed 1.06s
- RC4: 1 assertion passed 204us
- Base64: 11,994 assertions passed 132.55ms
- CompressShaAes: 1,683 assertions passed 7.63ms
- TAESPNRG: 9,999 assertions passed 97.58ms
Total failed: 0 / 40,598 - Cryptographic routines PASSED 1.34s
1.6. Compression:
- In memory compression: 12 assertions passed 410.09ms
- GZIP format: 19 assertions passed 787.04ms
- ZIP format: 79 assertions passed 2.92s
- SynLZO: 3,006 assertions passed 122.83ms
- SynLZ: 32,219 assertions passed 788.89ms
Total failed: 0 / 35,335 - Compression PASSED 5.03s
2. mORMot
2.1. File based:
- Database direct access: 20,251 assertions passed 265.46ms
- Virtual table direct access: 12 assertions passed 15.11ms
- TSQLTableJSON: 144,070 assertions passed 162.07ms
- TSQLRestClientDB: 608,193 assertions passed 6.31s
- TRecordVersion: 20,060 assertions passed 183.20ms
Total failed: 0 / 792,586 - File based PASSED 6.94s
2.2. File based memory map:
- Database direct access: 20,246 assertions passed 229.38ms
- Virtual table direct access: 12 assertions passed 2.33ms
- TSQLTableJSON: 144,070 assertions passed 145.70ms
- TSQLRestClientDB: 608,192 assertions passed 6.01s
- TRecordVersion: 20,060 assertions passed 196.22ms
Total failed: 0 / 792,580 - File based memory map PASSED 6.59s
2.3. File based WAL:
- Database direct access: 20,251 assertions passed 262.14ms
- Virtual table direct access: 12 assertions passed 1.92ms
- TSQLTableJSON: 144,070 assertions passed 159.05ms
- TSQLRestClientDB: 608,193 assertions passed 6.35s
- TRecordVersion: 20,060 assertions passed 170.73ms
Total failed: 0 / 792,586 - File based WAL PASSED 6.95s
2.4. Memory based:
- Database direct access: 20,246 assertions passed 224.94ms
- Virtual table direct access: 12 assertions passed 1.98ms
- TSQLTableJSON: 144,070 assertions passed 140.64ms
- TSQLRestClientDB: 676,500 assertions passed 7.09s
- TRecordVersion: 20,060 assertions passed 223.58ms
- RTree: 140,000 assertions passed 1.80s
- Shard write: 10,602 assertions passed 361.94ms
- Shard read: 140,001 assertions passed 566.98ms
- Shard read after purge: 114,003 assertions passed 469.88ms
Total failed: 0 / 1,265,494 - Memory based PASSED 10.90s
2.5. Basic classes:
- TSQLRecord: 88 assertions passed 701us
- TSQLRecordSigned: 200 assertions passed 5.76ms
- TSQLModel: 16 assertions passed 292us
- TSQLRestServerFullMemory: 982,483 assertions passed 1.07s
Total failed: 0 / 982,787 - Basic classes PASSED 1.08s
2.6. Client server access:
- TSQLHttpServer: 2 assertions passed 85.45ms
using HTTP API 2.0
- TSQLHttpClient: 3 assertions passed 42.69ms
using TSQLHttpClientWinHTTP
- HTTP client keep alive: 3,087 assertions passed 610.94ms
4818 B, first 5.15ms, done 570.45ms i.e. 1752/s, aver. 570us, 8.1 MB/s
- HTTP client multi connect: 3,087 assertions passed 628.26ms
4818 B, first 993us, done 595.03ms i.e. 1680/s, aver. 595us, 7.8 MB/s
- HTTP client encrypted: 3,087 assertions passed 632.00ms
4818 B, first 1.14ms, done 596.73ms i.e. 1675/s, aver. 596us, 7.8 MB/s
- Named pipe access: 3,089 assertions passed 739.03ms
4818 B, first 258.11ms, done 266.30ms i.e. 3755/s, aver. 266us, 17.5 MB/s
- Local window messages: 3,088 assertions passed 61.37ms
4818 B, first 158us, done 53.60ms i.e. 18654/s, aver. 53us, 87.2 MB/s
- Direct in process access: 3,056 assertions passed 48.41ms
4818 B, first 53us, done 36.94ms i.e. 27070/s, aver. 36us, 126.5 MB/s
- HTTP several DB servers: 9,604 assertions passed 20.86s
4818 B, first 875us, done 522.63ms i.e. 1913/s, aver. 522us, 8.9 MB/s
4818 B, first 822us, done 557.00ms i.e. 1795/s, aver. 557us, 8.3 MB/s
4818 B, first 850us, done 534.57ms i.e. 1870/s, aver. 534us, 8.7 MB/s
Total failed: 0 / 28,103 - Client server access PASSED 23.73s
2.7. Service oriented architecture:
- Weak interfaces: 56 assertions passed 800us
- Service initialization: 267 assertions passed 4.78ms
- Direct call: 596,022 assertions passed 55.51ms
- Server side: 596,042 assertions passed 55.13ms
- Client side REST: 794,722 assertions passed 1.60s
- Client side REST as JSON object: 794,716 assertions passed 1.66s
- Client side REST sessions stats: 794,716 assertions passed 1.63s
- Client side REST locked: 794,720 assertions passed 1.56s
- Client side REST main thread: 794,720 assertions passed 3.61s
- Client side REST background thread: 794,720 assertions passed 2.92s
- Client side REST weak authentication: 794,716 assertions passed 1.56s
- Client side REST basic authentication: 794,716 assertions passed 1.80s
- Client side REST custom record layout: 794,716 assertions passed 1.65s
- Client side REST service log to DB: 794,716 assertions passed 3.86s
- Client side JSONRPC: 794,716 assertions passed 1.69s
! Service oriented architecture - Test over HTTP
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create(): ICalculator interface or TSQLRestRoutingREST
routing not supported by server: {
"errorCode":403,
"errorText":"Forbidden"
}
- Security: 135 assertions passed 3.24ms
- Mocks and stubs: 30,032 assertions passed 68.43ms
Total failed: 1 / 9,964,449 - Service oriented architecture FAILED 42.69s
2.8. Bidirectional remote connection:
- Websockets JSON protocol: 60 assertions passed 695us
- Websockets binary protocol: 240 assertions passed 733us
- Run http server: 2 assertions passed 1.28ms
- SOA callback on server side: 4,578 assertions passed 3.20ms
- SOA callback via JSON websockets: 4,581 assertions passed 302.22ms
- SOA callback via binary websockets: 4,581 assertions passed 316.20ms
- TRecordVersion: 20,068 assertions passed 217.26ms
Total failed: 0 / 34,110 - Bidirectional remote connection PASSED 848.91ms
2.9. External database:
- TQuery: 2,003 assertions passed 15.26ms
- SynDBRemote: 30,095 assertions passed 619.99ms
- DB properties persistence: 7 assertions passed 3.35ms
- External records: 2 assertions passed 384us
- Auto adapt SQL: 942 assertions passed 123.65ms
- Crypted database: 253,275 assertions passed 295.18ms
- External via REST: 170,354 assertions passed 1.51s
- External via virtual table: 170,354 assertions passed 3.61s
- External via REST with change tracking: 180,454 assertions passed 4.64s
- JET database: 7,007 assertions passed 1.91s
Total failed: 0 / 814,493 - External database PASSED 12.75s
2.10. Multi thread process:
- Create thread pool: 1 assertion passed 3.49ms
- TSQLRestServerDB: 4,822 assertions passed 182.59ms
1=12624/s 2=13881/s 5=14284/s 10=14152/s 30=15916/s 50=14227/s
- TSQLRestClientDB: 4,822 assertions passed 224.53ms
1=11339/s 2=12713/s 5=13300/s 10=11638/s 30=12727/s 50=7983/s
- TSQLRestClientURINamedPipe: 2,412 assertions passed 1.25s
1=1245/s 2=1473/s 5=885/s
- TSQLRestClientURIMessage: 3,222 assertions passed 232.08ms
1=5893/s 2=7765/s 5=8208/s 10=7698/s
! - Windows API: 32 / 4,054 FAILED 19.89s
1=21/s 2=2100/s 5=2253/s 10=2258/s 30=2308/s 50=1994/s
- Socket API: 4,822 assertions passed 891.02ms
1=2636/s 2=3274/s 5=3472/s 10=2997/s 30=2799/s 50=1947/s
- Websockets: 4,822 assertions passed 614.26ms
1=4129/s 2=4413/s 5=5349/s 10=4890/s 30=3593/s 50=2750/s
- Locked: 4,822 assertions passed 286.20ms
1=11418/s 2=12148/s 5=12932/s 10=10269/s 30=9645/s 50=4223/s
- Unlocked: 4,822 assertions passed 202.28ms
1=11242/s 2=13755/s 5=13780/s 10=13720/s 30=15090/s 50=9905/s
- Main thread: 4,822 assertions passed 248.38ms
1=9663/s 2=9800/s 5=9795/s 10=9572/s 30=10058/s 50=12737/s
- Background thread: 4,822 assertions passed 210.59ms
1=10998/s 2=12383/s 5=12965/s 10=12647/s 30=14258/s 50=10204/s
Total failed: 32 / 48,265 - Multi thread process FAILED 24.26s
2.11. DDD shared units:
- User model: 3,276 assertions passed 1.30ms
- Authentication model: 20,006 assertions passed 146.91ms
- Email validation process: 55 assertions passed 30.18ms
- User CQRS repository: 57,106 assertions passed 629.68ms
Total failed: 0 / 80,443 - DDD shared units PASSED 812.55ms
2.12. DDD multi thread:
- Delete old database: 1 assertion passed 3.07ms
- Start server: 1 assertion passed 84.84ms
! DDD multi thread - Single client test
! Exception EAccessViolation raised with messsage:
! Access violation at address 00654987 in module 'TestSQL3.exe'. Read of addres
s 00000000
- Multi threaded clients test: 21 assertions passed 605.28ms
Total failed: 1 / 24 - DDD multi thread FAILED 19.60s
Using mORMot 1.18.2528 FTS3
Running on Windows 8.1 64bit (6.3.9600) with code page 1250
TSQLite3LibraryStatic 3.12.0 with internal MM
Generated with: Delphi 2007 compiler
Time elapsed for all tests: 172.39s
Tests performed at 2016-04-09 23:43:08
Total assertions failed for all test suits: 35 / 23,496,092
! Some tests FAILED: please correct the code.
Done - Press ENTER to ExitMichal
@danielkuettner,
Which ZEOS?, which svn?, which DB?, which client?, which Server?
Michal
@ab,
CodeTyphon 5.70-Win32; mORMot 1.18.2439; Windows 7-64
Compile and run:
- Project01,
- Project02,
- Project04Server - Project04Client.
TestSQL3 compile and:
Synopse mORMot Framework Automated tests
------------------------------------------
1. Synopse libraries
1.1. Low level common:
- System copy record: 83 assertions passed 84us
- TRawUTF8List: 130,009 assertions passed 40.28ms
- TDynArray: 1,082,723 assertions passed 248.63ms
- TDynArrayHashed: 1,200,629 assertions passed 111.80ms
- TObjectListHashed: 999,768 assertions passed 277.11ms
- TObjectDynArrayWrapper: 167,501 assertions passed 26.68ms
- TObjArray: 2,016 assertions passed 2.24ms
- Fast string compare: 24 assertions passed 169us
- IdemPropName: 197 assertions passed 115us
- Url encoding: 150 assertions passed 830us
- GUID: 9,005 assertions passed 7.97ms
- IsMatch: 599 assertions passed 275us
- Soundex: 35 assertions passed 93us
- Numerical conversions: 1,112,310 assertions passed 399.29ms
- crc32c: 30,030 assertions passed 56.14ms
pas 17.30ms 344.7 MB/s fast 2.80ms 2 GB/s sse42 1.22ms 4.7 GB/s
- Curr 64: 20,053 assertions passed 1.78ms
- CamelCase: 11 assertions passed 64us
- Bits: 4,774 assertions passed 384us
- Ini files: 7,004 assertions passed 17.18ms
- UTF8: 99,130 assertions passed 539.17ms
- Iso 8601 date and time: 48,017 assertions passed 6.82ms
- Time zones: 407 assertions passed 4.72ms
- Url decoding: 1,100 assertions passed 413us
- Mime types: 30 assertions passed 431us
- TSynTable: 875 assertions passed 4.49ms
- TSynCache: 404 assertions passed 198us
- TSynFilter: 804 assertions passed 1.86ms
- TSynValidate: 677 assertions passed 893us
- TSynLogFile: 42 assertions passed 553us
- TSynUniqueIdentifier: 1,300,002 assertions passed 512.43ms
Total failed: 0 / 6,218,409 - Low level common PASSED 2.27s
1.2. Low level types:
- RTTI: 410 assertions passed 451us
- Url encoding: 200 assertions passed 579us
- Encode decode JSON: 283,349 assertions passed 196.08ms
- Variants: 48 assertions passed 142us
- Mustache renderer: 144 assertions passed 2.44ms
- TDocVariant: no assertion 60us
- BSON: no assertion 362us
- TSynTableStatement: 206 assertions passed 433us
- TSynMonitorUsage: 1,202 assertions passed 384us
Total failed: 0 / 285,559 - Low level types PASSED 202.85ms
1.3. Cryptographic routines:
- Adler32: 1 assertion passed 64us
- MD5: 86 assertions passed 386us
- SHA1: 10 assertions passed 5.03ms
- SHA256: 8 assertions passed 8.23ms
- AES256: 12,790 assertions passed 202.19ms
cypher 1..9 bytes with AES-NI: 326us, without: 322us
- RC4: 1 assertion passed 129us
! - Base64: 3 / 11,994 FAILED 132.82ms
- CompressShaAes: 1,683 assertions passed 2.36ms
Total failed: 3 / 26,573 - Cryptographic routines FAILED 355.60ms
1.4. Compression:
- In memory compression: 12 assertions passed 309.70ms
! - GZIP format: 1 / 19 FAILED 631.44ms
! - ZIP format: 7 / 79 FAILED 2.41s
! - SynLZO: 1,000 / 3,006 FAILED 113.31ms
! - SynLZ: 989 / 32,221 FAILED 593.68ms
Total failed: 1,997 / 35,337 - Compression FAILED 4.06s
2. mORMot
2.1. File based:
- Database direct access: 20,251 assertions passed 114.86ms
- Virtual table direct access: 12 assertions passed 1.28ms
- TSQLTableJSON: 144,070 assertions passed 96.73ms
- TSQLRestClientDB: 608,193 assertions passed 2.93s
- TRecordVersion: 20,060 assertions passed 147.49ms
Total failed: 0 / 792,586 - File based PASSED 3.29s
2.2. File based memory map:
- Database direct access: 20,246 assertions passed 123.68ms
- Virtual table direct access: 12 assertions passed 1.05ms
- TSQLTableJSON: 144,070 assertions passed 91.37ms
- TSQLRestClientDB: 608,192 assertions passed 2.65s
- TRecordVersion: 20,060 assertions passed 152.44ms
Total failed: 0 / 792,580 - File based memory map PASSED 3.02s
2.3. File based WAL:
- Database direct access: 20,251 assertions passed 133.37ms
- Virtual table direct access: 12 assertions passed 843us
- TSQLTableJSON: 144,070 assertions passed 94.39ms
- TSQLRestClientDB: 608,193 assertions passed 2.82s
- TRecordVersion: 20,060 assertions passed 121.04ms
Total failed: 0 / 792,586 - File based WAL PASSED 3.18s
2.4. Memory based:
- Database direct access: 20,246 assertions passed 121.64ms
- Virtual table direct access: 12 assertions passed 1.01ms
- TSQLTableJSON: 144,070 assertions passed 93.11ms
- TSQLRestClientDB: 676,500 assertions passed 3.65s
- TRecordVersion: 20,060 assertions passed 133.22ms
- RTree: 140,000 assertions passed 703.51ms
- Shard write: 10,602 assertions passed 325.88ms
- Shard read: 140,001 assertions passed 435.09ms
- Shard read after purge: 114,003 assertions passed 357.40ms
Total failed: 0 / 1,265,494 - Memory based PASSED 5.83s
2.5. Basic classes:
! - TSQLRecord: 5 / 88 FAILED 1.04ms
- TSQLRecordSigned: 200 assertions passed 5.96ms
- TSQLModel: 16 assertions passed 306us
! - TSQLRestServerFullMemory: 370,119 / 640,135 FAILED 4.25s
Total failed: 370,124 / 640,439 - Basic classes FAILED 4.26s
2.6. Client server access:
- TSQLHttpServer: 2 assertions passed 3.60ms
using HTTP API 2.0
- TSQLHttpClient: 3 assertions passed 14.26ms
using TSQLHttpClientWinHTTP
- HTTP client keep alive: 3,087 assertions passed 193.11ms
4818 B, first 1.75ms, done 181.18ms i.e. 5519/s, aver. 181us, 25.8 MB/s
- HTTP client multi connect: 3,087 assertions passed 186.86ms
4818 B, first 304us, done 178.70ms i.e. 5595/s, aver. 178us, 26.1 MB/s
- HTTP client encrypted: 3,087 assertions passed 221.89ms
4818 B, first 321us, done 213.12ms i.e. 4692/s, aver. 213us, 21.9 MB/s
- Named pipe access: 3,089 assertions passed 570.31ms
4818 B, first 274.55ms, done 88.43ms i.e. 11307/s, aver. 88us, 52.8 MB/s
! - Local window messages: 1 / 2 FAILED 1.40ms
- Direct in process access: 3,056 assertions passed 57.13ms
4818 B, first 67us, done 40.08ms i.e. 24949/s, aver. 40us, 116.6 MB/s
- HTTP several DB servers: 9,604 assertions passed 779.11ms
4818 B, first 437us, done 209.43ms i.e. 4774/s, aver. 209us, 22.3 MB/s
4818 B, first 334us, done 195.50ms i.e. 5115/s, aver. 195us, 23.9 MB/s
4818 B, first 305us, done 195.20ms i.e. 5122/s, aver. 195us, 23.9 MB/s
Total failed: 1 / 25,017 - Client server access FAILED 2.04s
2.7. Service oriented architecture:
- Weak interfaces: 56 assertions passed 1.02ms
! - Service initialization: 1 / 17 FAILED 3.76ms
- Direct call: 537,186 assertions passed 43.56ms
! - Server side: 1 / 3 FAILED 180us
! Service oriented architecture - Client side REST
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create(): IComplexCalculator interface or TSQLRestRouti
ngREST routing not supported by server: {
"errorCode":400,
"errorText":"Bad Request"
}
! Service oriented architecture - Client side REST as JSON object
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Client side REST sessions stats
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
- Client side REST locked: 3 assertions passed 3.64ms
- Client side REST main thread: 3 assertions passed 15.80ms
! Service oriented architecture - Client side REST background thread
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Client side REST weak authentication
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Client side REST basic authentication
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Client side REST custom record layout
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Client side REST service log to DB
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Client side JSONRPC
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create: IComplexCalculator.TestBlob sicClientDriven mod
e not allowed with TServiceCustomAnswer result
! Service oriented architecture - Test over HTTP
! Exception EServiceException raised with messsage:
! TServiceFactoryClient.Create(): IComplexCalculator interface or TSQLRestRouti
ngREST routing not supported by server: {
"errorCode":400,
"errorText":"Bad Request"
}
! - Security: 52 / 135 FAILED 1.81ms
- Mocks and stubs: 30,030 assertions passed 56.43ms
Total failed: 58 / 567,460 - Service oriented architecture FAILED 154.02ms
2.8. Bidirectional remote connection:
- Websockets JSON protocol: 60 assertions passed 665us
- Websockets binary protocol: 240 assertions passed 470us
- Run http server: 2 assertions passed 415us
- SOA callback on server side: 4,578 assertions passed 2.33ms
! Bidirectional remote connection - SOA callback via JSON websockets
! Exception EInterfaceFactoryException raised with messsage:
! TInterfacedObjectFakeClient.FakeCall(IBidirService.TestCallback) failed: '{
"errorCode":500,
"error":
{"EAccessViolation":{"EAccessViolation":"Access violation"}}
}'
! Bidirectional remote connection - SOA callback via binary websockets
! Exception EInterfaceFactoryException raised with messsage:
! TInterfacedObjectFakeClient.FakeCall(IBidirService.TestCallback) failed: '{
"errorCode":500,
"error":
{"EAccessViolation":{"EAccessViolation":"Access violation"}}
}'
- TRecordVersion: 20,068 assertions passed 225.88ms
Total failed: 0 / 29,366 - Bidirectional remote connection PASSED 297.92ms
2.9. External database:
- TQuery: 2,003 assertions passed 11.48ms
! External database - SynDBRemote
! Exception ESQLDBRemote raised with messsage:
! You do not have the right to be here
- DB properties persistence: 7 assertions passed 1.45ms
- External records: 2 assertions passed 508us
- Auto adapt SQL: 942 assertions passed 60.72ms
- Crypted database: 253,275 assertions passed 175.09ms
- External via REST: 170,354 assertions passed 811.34ms
- External via virtual table: 170,354 assertions passed 1.29s
- External via REST with change tracking: 180,454 assertions passed 1.79s
- JET database: 7,007 assertions passed 716.52ms
Total failed: 0 / 789,413 - External database PASSED 4.90s
2.10. Multi thread process:
- Create thread pool: 1 assertion passed 3.86ms
- TSQLRestServerDB: 4,822 assertions passed 82.84ms
1=20458/s 2=35220/s 5=34955/s 10=37993/s 30=42069/s 50=40164/s
- TSQLRestClientDB: 4,822 assertions passed 1.46s
1=34106/s 2=18021/s 5=6874/s 10=2872/s 30=886/s 50=523/s
- TSQLRestClientURINamedPipe: 2,412 assertions passed 1.76s
1=1300/s 2=987/s 5=478/s
! - TSQLRestClientURIMessage: 18 / 40 FAILED 27.26ms
1=215053/s 2=157728/s 5=95900/s 10=64745/s
- Windows API: 4,822 assertions passed 1.27s
1=4868/s 2=7422/s 5=5376/s 10=2679/s 30=922/s 50=858/s
Runtime error 204 at $004131DB
Runtime error 204 at $004131DB
Runtime error 204 at $004131DB
Runtime error 204 at $004131DB
Runtime error 204 at $004131DB
Runtime error 204 at $004131DB
Runtime error 204 at $004131DB
$004131DB
$004131DB
$004131DB
$004131DB
$004131DB
$004131DB
$004131DB
$00629F9C
$0062A207
$00429E6B
$0042A169
$0042BEAA
$0042BC5D
$00629E95
$0040FDEE
$76C6338AMichal
@ab,
In the Fastreport 5.4.4 (published yesterday) is an example of use this module with mORMot.
Michal
Interesting that the Project01.lpi (and mormot.pas) compiles and works under the same conditions.
Michal
@ab,
Lazarus 1.6-Win32 has a problem with the SetID( in mormot.pas:
mORMot.pas(23282,7) Error: Internal error 2006111510
Michal
@ab
sec
Michal
Hi Arnaud,
I did a comparison test Native and Scalemm2, using Steve Maughan "Speed Test".
http://www.stevemaughan.com/delphi/delp … -managers/
https://cozmixdownloads.s3.amazonaws.co … Source.zip
Delphi 10 Seattle on Windows7-64 i7-2600 4C-HT 3,5GHz
Native
SC-32 21,5
MC-32 9,3
SC-64 39,6
MC-64 18,1
Scalemm2
SC-32 9,4 !?!?
MC-32 2,6 !?!?
SC-64 40,1
MC-64 10,7 !
Curious especially Scalemm2-32.
Michal
@ab,
For me now, too. (1.18.2366).
Is fine.
It is interesting that on Windows 8.1-64 had more AV errors than on Windows 7.
Michal
@ab,
It seems to me that an error occurs in this procedure:
procedure TSynMonitor.FillPerSecProperties;
begin
if fTaskCount=0 then
exit; // avoid division per zero
fPerSec := fTotalTime.PerSecond(fTaskCount);
fAverageTime.MicroSec := Round(fTotalTime.MicroSec/fTaskCount);
end;Michal
I tried .obj compiled by Delphi 2007 and XE2.
The effect is the same.
Michal
mORMot 1.18.2363:
Synopse mORMot Framework Automated tests
------------------------------------------
1. Synopse libraries
1.1. Low level common:
- System copy record: 83 assertions passed 341us
- TRawUTF8List: 130,009 assertions passed 161.94ms
- TDynArray: 1,082,725 assertions passed 208.75ms
- TDynArrayHashed: 1,200,629 assertions passed 150.88ms
- TObjectListHashed: 999,885 assertions passed 481.28ms
- TObjectDynArrayWrapper: 167,501 assertions passed 33.15ms
- TObjArray: 2,016 assertions passed 1.95ms
- Fast string compare: 24 assertions passed 303us
- IdemPropName: 197 assertions passed 296us
- Url encoding: 150 assertions passed 1.27ms
- GUID: 9,005 assertions passed 1.82ms
- IsMatch: 599 assertions passed 415us
- Soundex: 35 assertions passed 266us
- Numerical conversions: 1,116,206 assertions passed 368.59ms
- crc32c: 20,020 assertions passed 74.89ms
pas 25.63ms 232.7 MB/s fast 4.37ms 1.3 GB/s
- Curr 64: 20,053 assertions passed 2.06ms
- CamelCase: 11 assertions passed 292us
- Bits: 4,774 assertions passed 6.25ms
- Ini files: 7,004 assertions passed 35.12ms
- UTF8: 105,137 assertions passed 973.23ms
- Iso 8601 date and time: 48,017 assertions passed 7.98ms
- Time zones: 407 assertions passed 16.88ms
- Url decoding: 1,100 assertions passed 444us
- Mime types: 27 assertions passed 390us
- TSynTable: 875 assertions passed 4.46ms
- TSynCache: 404 assertions passed 4.17ms
- TSynFilter: 1,005 assertions passed 3.24ms
- TSynValidate: 677 assertions passed 915us
- TSynLogFile: 42 assertions passed 1.64ms
- TSynUniqueIdentifier: 1,300,002 assertions passed 654.54ms
Total failed: 0 / 6,218,619 - Low level common PASSED 3.22s
1.2. Low level types:
- RTTI: 410 assertions passed 734us
- Url encoding: 200 assertions passed 831us
- Encode decode JSON: 283,022 assertions passed 171.94ms
- Variants: 48 assertions passed 401us
- Mustache renderer: 144 assertions passed 4.21ms
- TDocVariant: 71,783 assertions passed 190.75ms
- BSON: 245,050 assertions passed 3.65ms
- TSynTableStatement: 206 assertions passed 451us
- TSynMonitorUsage: 1,202 assertions passed 452us
Total failed: 0 / 602,065 - Low level types PASSED 385.46ms
1.3. Big table:
- TSynBigTable: 19,332 assertions passed 167.38ms
- TSynBigTableString: 16,200 assertions passed 26.09ms
- TSynBigTableMetaData: 475,563 assertions passed 1.30s
- TSynBigTableRecord: 375,563 assertions passed 1.87s
Total failed: 0 / 886,658 - Big table PASSED 3.37s
1.4. Synopse PDF:
! - TPdfDocument: 1 / 2 FAILED 10.66ms
- TPdfDocumentGDI: 5 assertions passed 1.09s
Total failed: 1 / 7 - Synopse PDF FAILED 1.11s
1.5. Cryptographic routines:
- Adler32: 1 assertion passed 684us
- MD5: 86 assertions passed 696us
- SHA1: 10 assertions passed 10.27ms
- SHA256: 8 assertions passed 16.84ms
- AES256: 16,816 assertions passed 1.02s
- RC4: 1 assertion passed 193us
- Base64: 11,994 assertions passed 127.47ms
- CompressShaAes: 1,683 assertions passed 4.86ms
Total failed: 0 / 30,599 - Cryptographic routines PASSED 1.19s
1.6. Compression:
- In memory compression: 12 assertions passed 399.71ms
- GZIP format: 19 assertions passed 739.67ms
- ZIP format: 79 assertions passed 2.84s
- SynLZO: 3,006 assertions passed 121.23ms
- SynLZ: 32,221 assertions passed 785.63ms
Total failed: 0 / 35,337 - Compression PASSED 4.89s
2. mORMot
2.1. File based:
- Database direct access: 20,251 assertions passed 257.34ms
- Virtual table direct access: 12 assertions passed 2.56ms
- TSQLTableJSON: 144,070 assertions passed 154.01ms
! File based - TSQLRestClientDB
! Exception EAccessViolation raised with messsage:
! Access violation at address 0044ED5A in module 'TestSQL3.exe'. Read of addres
s 1C96BD90
! File based - TRecordVersion
! Exception EAccessViolation raised with messsage:
! Access violation at address 0044ED5A in module 'TestSQL3.exe'. Read of addres
s 1C96BC30
2.2. File based memory map:
- Database direct access: 20,246 assertions passed 244.52ms
- Virtual table direct access: 12 assertions passed 2.43ms
- TSQLTableJSON: 144,070 assertions passed 140.86ms
! File based memory map - TSQLRestClientDB
! Exception EAccessViolation raised with messsage:
! Access violation at address 0044ED5A in module 'TestSQL3.exe'. Read of addres
s 1C96A840
! File based memory map - TRecordVersion
! Exception EAccessViolation raised with messsage:
! Access violation at address 0044ED5A in module 'TestSQL3.exe'. Read of addres
s 1C96A9A0
2.3. File based WAL:
- Database direct access: 20,251 assertions passed 266.81ms
- Virtual table direct access: 12 assertions passed 2.80ms
- TSQLTableJSON: 144,070 assertions passed 155.39ms
! File based WAL - TSQLRestClientDB
! Exception EAccessViolation raised with messsage:
! Access violation at address 0044ED5A in module 'TestSQL3.exe'. Read of addres
s 1C96A6E0
! File based WAL - TRecordVersion
! Exception EAccessViolation raised with messsage:
! Access violation at address 0044ED5A in module 'TestSQL3.exe'. Read of addres
s 1C96BC30
2.4. Memory based:
- Database direct access: 20,246 assertions passed 236.26ms
- Virtual table direct access: 12 assertions passed 1.68ms
- TSQLTableJSON: 144,070 assertions passed 138.76ms
! Memory based - TSQLRestClientDB
! Exception EAccessViolation raised with messsage:
! Access violation at address 0044ED5A in module 'TestSQL3.exe'. Read of addres
s 1C96A790
! Memory based - TRecordVersion
! Exception EAccessViolation raised with messsage:
! Access violation at address 0044ED5A in module 'TestSQL3.exe'. Read of addres
s 1C96A9A0In Delphi XE2 is fine.
Michal
@igors233
Which ZEOS and Firebird version and svn are you using?
Michal
I use Delphi 10 Seattle but I do not avoid from Lazarus and especially CodeTyphon which is heavily multi-platform.
It works, but dpr in Delphi should look like this:
program SAPUI5Server;
uses
Forms,
Main in 'Main.pas' {Form1},
SampleData in 'SampleData.pas';
{$R *.res}
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.Michal
Disable USE_SYNCOMMONS:
Running tests using Synopse mORMot framework 1.18.2260, compiled with Delphi 10 Seattle, against SQLite 3.10.0, at 2016-01-15 15:16:47.
Insertion speed
Direct Batch Trans Batch Trans
SQLite3 (file full) 68 2165 54346 117774
SQLite3 (file off) 1213 68362 75790 191109
SQLite3 (file off exc) 24027 192108 75024 202971
SQLite3 (mem) 65624 225968 77443 225509
TObjectList (static) 178986 365176 176435 353756
TObjectList (virtual) 169825 343430 170508 341064
SQLite3 (ext full) 83 2944 62902 147110
SQLite3 (ext off) 1301 33429 86846 185542
SQLite3 (ext off exc) 33104 179623 85576 192663
SQLite3 (ext mem) 77218 208255 87423 210190
ZEOS SQlite3 154 4027 43263 68121
FireDAC SQlite3 17998 31924 38710 118962
ODBC MSSQL2012 1115 11842 2371 21344
ZEOS ODBC_W MSSQL2012 1177 31570 2404 36979
ZEOS ODBC_A MSSQL2012 1282 40021 2446 33856
ZEOS OleDB MSSQL2012 1378 3184 2600 42358
FireDAC MSSQL2012 1206 2271 2555 30365
ZEOS Firebird 423 5129 3848 8803
FireDAC Firebird 284 6497 6293 8595
Oracle 677 19427 1624 51729
ZEOS Oracle 528 43027 2006 40446
FireDAC Oracle 801 33016 1737 28510
ZEOS PostgreSQL 505 11355 2221 19175
FireDAC PostgreSQL 1001 15790 1873 16676
ZEOS MySQL 2296 28764 2427 30099
FireDAC MySQL 1612 30686 1873 39025
Read speed
By one All Virtual All Direct
SQLite3 (file full) 91164 506277 523231
SQLite3 (file off) 90778 525430 517812
SQLite3 (file off exc) 91549 531011 515676
SQLite3 (mem) 91426 528932 518134
TObjectList (static) 166588 690035 699300
TObjectList (virtual) 165251 391849 661900
SQLite3 (ext full) 101586 263393 505458
SQLite3 (ext off) 99860 262453 507305
SQLite3 (ext off exc) 101144 258304 506431
SQLite3 (ext mem) 99316 256160 502563
ZEOS SQlite3 52975 202420 348237
FireDAC SQlite3 5385 98767 131669
ODBC MSSQL2012 2391 95995 219211
ZEOS ODBC_W MSSQL2012 1244 102578 164414
ZEOS ODBC_A MSSQL2012 1249 100502 154521
ZEOS OleDB MSSQL2012 2350 159841 309501
FireDAC MSSQL2012 1670 109994 169508
ZEOS Firebird 24432 97578 135725
FireDAC Firebird 444 52564 78346
Oracle 2011 96564 168055
ZEOS Oracle 2380 86110 134890
FireDAC Oracle 1527 57287 71551
ZEOS PostgreSQL 2287 82632 149866
FireDAC PostgreSQL 510 36242 42399
ZEOS MySQL 2555 113247 232536
FireDAC MySQL 1425 79583 110734ZEOS 7.3 svn3731 Delphi 10 Seattle Win32
Michal
Enable USE_SYNCOMMONS:
Running tests using Synopse mORMot framework 1.18.2257, compiled with Delphi 10 Seattle, against SQLite 3.10.0, at 2016-01-14 00:28:48.
Insertion speed
Direct Batch Trans Batch Trans
SQLite3 (file full) 73 2224 48436 79994
ZEOS SQlite3 109 2313 32849 63760
FireDAC SQlite3 18414 32522 38993 120473
ODBC MSSQL2012 813 8032 2396 21961
ZEOS ODBC_W MSSQL2012 1322 37504 2474 39177
ZEOS ODBC_A MSSQL2012 1089 34769 2428 37281
ZEOS OleDB MSSQL2012 1188 2519 2522 39679
FireDAC MSSQL2012 1232 2346 2408 30788
ZEOS Firebird 446 5392 7636 12505
FireDAC Firebird 265 9980 6602 10609
Oracle 842 57359 1682 47757
ZEOS Oracle 787 48471 2323 50581
FireDAC Oracle 842 49012 2136 46999
ZEOS PostgreSQL 479 10864 2288 19950
FireDAC PostgreSQL 992 16699 1681 16859
ZEOS MySQL 2350 28706 2466 30955
FireDAC MySQL 1969 38152 2068 38869
Read speed
By one All Virtual All Direct
SQLite3 (file full) 88062 482299 493924
ZEOS SQlite3 57301 196047 450491
FireDAC SQlite3 5493 94957 136032
ODBC MSSQL2012 2524 96694 223015
ZEOS ODBC_W MSSQL2012 1272 97633 174137
ZEOS ODBC_A MSSQL2012 1264 101317 166944
ZEOS OleDB MSSQL2012 2355 125571 372134
FireDAC MSSQL2012 1676 104552 166750
ZEOS Firebird 25949 92407 143135
FireDAC Firebird 643 59191 77674
Oracle 2243 103201 184175
ZEOS Oracle 2467 92033 171697
FireDAC Oracle 1498 58566 75607
ZEOS PostgreSQL 2618 84711 163158
FireDAC PostgreSQL 469 33022 45944
ZEOS MySQL 2448 127349 283575
FireDAC MySQL 1451 80362 111582ZEOS 7.3 svn3731 Delphi 10 Seattle Win32
Michal
@ab,
TestSQL3.exe:
! - UTF8: 14,000 / 175,151 FAILED 1.12s
Delphi 10 Seattle Win32 mORMot 1.18.2257
Michal
@ab, @EgonHugeist,
Enable USE_SYNCOMMONS
mORMot: [dcc32 Fatal Error] SynDBZEOS.pas(138): F2051 Unit ZDbcCache was compiled with a different version of SynCommons.TTextWriter.AddNoJSONEscapeUTF8
ZEOS: "ZDbc contains implicit unit(s) SynCommons, SynLZ"
It gets a cross between a libraries.
It's probably not a good solution?
Delphi 10 Seattle Win32; mORMot 1.18.2257; ZEOS 7.3 svn3731
Michal
@Michael,
I added to the previous ZEOS 7.3 OleDB (at the moment without $USE_SYNCOMMONS)
Michal
Add MSSQL-ODBC SQL Server Native Client 11.0 remote
Running tests using Synopse mORMot framework 1.18.2244, compiled with Delphi 10 Seattle, against SQLite 3.10.0, at 2016-01-12 15:23:09.
Insertion speed
Direct Batch Trans Batch Trans
SQLite3 (file full) 71 2328 55403 128518
ZEOS SQlite3 97 2379 42335 76210
FireDAC SQlite3 18096 32383 39540 123456
ODBC MSSQL2012 1010 12497 2511 21083
ZEOS ODBC_W MSSQL2012 1257 37149 2460 37088
ZEOS ODBC_A MSSQL2012 1141 36157 2526 35155
ZEOS OleDB MSSQL2012 1317 2693 2465 47224
FireDAC MSSQL2012 1138 2452 2492 33653
ZEOS Firebird 471 7891 7209 9511
FireDAC Firebird 275 7471 8719 10213
Oracle 736 63895 2154 63489
ZEOS Oracle 850 48913 2313 48874
FireDAC Oracle 829 33849 2132 46199
ZEOS PostgreSQL 546 13358 2280 19152
FireDAC PostgreSQL 895 16905 2511 16744
ZEOS MySQL 2381 30604 2469 31232
FireDAC MySQL 1888 25834 2011 34124
Read speed
By one All Virtual All Direct
SQLite3 (file full) 87389 516102 520345
ZEOS SQlite3 53766 189559 372079
FireDAC SQlite3 5492 95745 135828
ODBC MSSQL2012 2550 90571 227086
ZEOS ODBC_W MSSQL2012 1269 89937 162665
ZEOS ODBC_A MSSQL2012 1264 93210 158257
ZEOS OleDB MSSQL2012 2424 136709 307144
FireDAC MSSQL2012 1708 101341 163031
ZEOS Firebird 27082 94060 138281
FireDAC Firebird 598 60293 78280
Oracle 2372 107335 190338
ZEOS Oracle 2493 92926 161191
FireDAC Oracle 1516 58598 72710
ZEOS PostgreSQL 2207 82628 148712
FireDAC PostgreSQL 531 34188 45066
ZEOS MySQL 2421 103536 230489
FireDAC MySQL 1386 81234 109863ZEOS 7.3 svn3730 Delphi 10 Seattle Win32
http://svn.code.sf.net/p/zeoslib/code-0 … sting-7.3/
http://zeoslib.sourceforge.net/viewtopi … 082#p56082
Michal
Running tests using Synopse mORMot framework 1.18.2244, compiled with Delphi 10 Seattle, against SQLite 3.10.0, at 2016-01-12 10:56:55.
Insertion speed
Direct Batch Trans Batch Trans
SQLite3 (file full) 62 1885 54550 74440
ZEOS SQlite3 92 1778 39365 58060
FireDAC SQlite3 17302 31822 37488 120371
ZEOS Firebird 357 5586 6292 8287
FireDAC Firebird 298 9928 8120 7772
Oracle 809 46830 1592 46620
ZEOS Oracle 884 49108 1865 20496
FireDAC Oracle 667 36402 1728 29090
ZEOS PostgreSQL 342 12341 2379 18120
FireDAC PostgreSQL 914 16701 2450 16653
ZEOS MySQL 2319 30033 2427 23012
FireDAC MySQL 1926 21835 2192 36423
Read speed
By one All Virtual All Direct
SQLite3 (file full) 66394 504286 507872
ZEOS SQlite3 45045 203641 357986
FireDAC SQlite3 5316 96192 130944
ZEOS Firebird 24898 96065 134419
FireDAC Firebird 558 54994 78133
Oracle 2551 126518 187666
ZEOS Oracle 2371 61260 157713
FireDAC Oracle 1739 60749 78895
ZEOS PostgreSQL 2316 81826 149929
FireDAC PostgreSQL 529 35701 44792
ZEOS MySQL 2395 119175 227583
FireDAC MySQL 1415 83693 109955ZEOS 7.3 svn3730 Delphi 10 Seattle Win32
Michal
Uncomment
{.$define USEZEOS}
Michal
@EMartin, @ab,
A little explained.
Delphi XE2-Win32 does not have this error,
Delphi 10 Seattle-Win32 has it.
(mORMot 1.18.2203)
Michal
@EMartin, @ab,
After the change, and post by dbnavigator I get error:
"rdsBioLife.InternalDataSet: SQL Not supported"
Delphi 10 Seattle, Win32, mORMot 1.18.2202
Michal
@EMrtin, @ab,
1.18.2193
In the demo, EMartin stopped working Update!!!
Michal
@ab:
I wonder why the Total for each test is different?
Michal
Tests on the current mORMot 1.18.2105 (on Win7-64):
DXE2-Win32
Using mORMot 1.18.2105 FTS3
Running on wSeven_64 with code page 1250
TSQLite3LibraryStatic 3.9.2 with internal MM
Generated with: Delphi XE2 compiler
Time elapsed for all tests: 56.77s
Tests performed at 2015-11-29 10:56:06
Total assertions failed for all test suits: 0 / 21,997,891
! All tests passed successfully.DXE2-Win64
...
! - Encode decode JSON: 60 / 303,807 FAILED 119.19ms
...
Using mORMot 1.18.2105 FTS3
Running on wSeven_64 with code page 1250
TSQLite3LibraryDynamic 3.8.7 with internal MM
Generated with: Delphi XE2 64 bit compiler
Time elapsed for all tests: 59.43s
Tests performed at 2015-11-29 11:23:07
Total assertions failed for all test suits: 60 / 21,906,152
! Some tests FAILED: please correct the code.DX10 Seattle-Win32
Using mORMot 1.18.2105 FTS3
Running on wSeven_64 with code page 1250
TSQLite3LibraryStatic 3.9.2 with internal MM
Generated with: Delphi 10 Seattle compiler
Time elapsed for all tests: 48.07s
Tests performed at 2015-11-29 11:07:08
Total assertions failed for all test suits: 0 / 22,021,241
! All tests passed successfully.DX10 Seattle-Win64
Using mORMot 1.18.2105 FTS3
Running on wSeven_64 with code page 1250
TSQLite3LibraryDynamic 3.8.7 with internal MM
Generated with: Delphi 10 Seattle 64 bit compiler
Time elapsed for all tests: 45.81s
Tests performed at 2015-11-29 11:10:37
Total assertions failed for all test suits: 0 / 21,933,835
! All tests passed successfully.What is interesting only for DX10 Seattle-Win64, I got:
Building TestSQL3.dproj (Debug, Win64)
...
[dcc64 Hint] SynSelfTests.pas(3418): H2135 FOR or WHILE loop executes zero times - deleted
[dcc64 Hint] SynSelfTests.pas(3419): H2135 FOR or WHILE loop executes zero times - deleted
[dcc64 Hint] SynSelfTests.pas(3420): H2135 FOR or WHILE loop executes zero times - deleted
[dcc64 Hint] SynSelfTests.pas(3423): H2135 FOR or WHILE loop executes zero times - deleted
[dcc64 Hint] SynSelfTests.pas(3424): H2135 FOR or WHILE loop executes zero times - deleted
[dcc64 Hint] SynSelfTests.pas(3425): H2135 FOR or WHILE loop executes zero times - deleted
[dcc64 Hint] SynSelfTests.pas(3426): H2135 FOR or WHILE loop executes zero times - deleted
...
SuccessMichal
@ab
How to link statically (if I can) in Delphi-Win64 sqlite3-64.o (from FPC).
What option is to force linking static or dynamic?
Michal
mORMot 1.18.1900 with Delphi 10-Win32 Seattle and Zeos 7.3 svn 3647 (and FireDAC) compiles and runs.
But I also do not have C ++ Builder.
Michal
May be add an additional question about metadata, and answer receive in JSON?
For DXE2:
[
{
"ID": 1,
"IDZakaza": 1,
"IDTipoisp": 1,
"SerNomer": "",
"Otchety_nastrk": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}",
"Otchety_termo0": "{\"Href\":\"\",\"Report\":\"<html></html>\",\"Result\":\"Success\",\"DateTest\":\"2015-09-29 08:59:09\"}",
"Otchety_termo8": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 08:59:09\"}",
"Otchety_termo16": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 08:59:09\"}",
"Otchety_termo24": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 08:59:09\"}",
"Otchety_termo36": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 08:59:09\"}",
"Otchety_termo48": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 08:59:09\"}",
"Otchety_termo72": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 08:59:09\"}",
"Otchety_Koeff": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 08:59:09\"}",
"Otchety_HtmKoeff": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 08:59:09\"}",
"Otchety_Test": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 08:59:09\"}"
}
]For DXE10
[
{
"ID": 1,
"IDZakaza": 1,
"IDTipoisp": 1,
"SerNomer": "",
"Otchety_nastrk": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}",
"Otchety_termo0": "{\"Href\":\"\",\"Report\":\"<html></html>\",\"Result\":\"Success\",\"DateTest\":\"2015-09-29 09:00:51\"}",
"Otchety_termo8": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 09:00:51\"}",
"Otchety_termo16": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 09:00:51\"}",
"Otchety_termo24": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 09:00:51\"}",
"Otchety_termo36": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 09:00:51\"}",
"Otchety_termo48": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 09:00:51\"}",
"Otchety_termo72": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 09:00:51\"}",
"Otchety_Koeff": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 09:00:51\"}",
"Otchety_HtmKoeff": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 09:00:51\"}",
"Otchety_Test": "{\"Href\":\"\",\"Report\":\"\",\"Result\":\"\",\"DateTest\":\"\"}cess\",\"DateTest\":\"2015-09-29 09:00:51\"}"
}
]Michal
@Alek
Delphi XE2-32(up4 hotfix1) mORMot 1.18.1928 - compiles and runs
Delphi 10 Seattle-32 mORMot 1.18.1928 - compiles and runs
Michal
@AOG
Thanks.
Now it compiles.
Michal
@EMartin,
There are problems in Delphi XE2-32.
Specifically in SynRestVCL.pas:
lBlob := BlobToTSQLRawBlob(aParams[i].AsBlob);[DCC Error] SynRestVCL.pas(688): E2250 There is no overloaded version of 'BlobToTSQLRawBlob' that can be called with these arguments
Michal
Running tests using Synopse mORMot framework 1.18.1790, compiled with Delphi XE2, against SQLite 3.8.11.1, at 2015-08-15 11:32:29.
Insertion speed
Direct Batch Trans Batch Trans
SQLite3 (file full) 8 466 23140 32561
ZEOS SQlite3 11 368 22256 26940
AnyDAC SQlite3 16179 27717 35384 101061
UniDAC SQlite3 10 279 13249 13030
ZEOS Firebird 1266 60109 17245 61127
AnyDAC Firebird 18399 52010 18235 50654
Oracle 1004 75597 2442 76109
ZEOS Oracle 1049 61026 2471 47147
AnyDAC Oracle 1038 58230 2495 59366
UniDAC Oracle 971 4653 2127 5042
ZEOS PostgreSQL 503 14248 2420 23939
AnyDAC PostgreSQL 1269 18519 2333 18572
UniDAC PostgreSQL 581 10688 752 14161
ZEOS MySQL 9511 37415 11796 31780
AnyDAC MySQL 7620 31507 10615 45746
UniDAC MySQL 7929 28611 11243 29960
Read speed
By one All Virtual All Direct
SQLite3 (file full) 84365 509424 502714
ZEOS SQlite3 29463 205035 333400
AnyDAC SQlite3 6781 77592 101590
UniDAC SQlite3 1664 80558 102262
ZEOS Firebird 13315 127913 174228
AnyDAC Firebird 788 65992 83232
Oracle 2470 133418 183972
ZEOS Oracle 2455 120293 155806
AnyDAC Oracle 1933 53568 66895
UniDAC Oracle 1113 42780 47848
ZEOS PostgreSQL 2330 106469 147470
AnyDAC PostgreSQL 576 34965 39092
UniDAC PostgreSQL 330 78092 103727
ZEOS MySQL 10145 175864 276243
AnyDAC MySQL 3863 95100 129951
UniDAC MySQL 5138 129698 195000ZEOSLIB 7.2-beta svn 3638: http://svn.code.sf.net/p/zeoslib/code-0 … sting-7.2/
Michal
Have you tried?:
mORMot\SQLite3\Samples\30 - MVC Server\MVCServerFirebird.dpr
Michal
We're using ZEOSDBO-7.1.4-stable, is 7.2 stable enough to upgrade to?
Yes.
Install and write if something changed.
Some time ago there was a big change in transactions for Firebird in ZEOS 7.2.
In addition, the ZEOS 7.2 should be faster and have fewer errors.
Michal
@willo,
Do you use Zeos7.2 branches_ testing svn3638 ?:
http://svn.code.sf.net/p/zeoslib/code-0 … sting-7.2/
http://zeoslib.sourceforge.net/viewtopi … 345#p46750
Michal
New bug disappeared but this error still occurs in Delphi XE2-32, XE3-32 (mORMot 1.18.1637):
[DCC Error] [DCC Error] SynSelfTests.pas(5245): E2010 Incompatible types: 'PUTF8Char' and 'PAnsiChar'
--> Check(UTF8ContentNumberType('null')=sftUnknown);
... and the next 15 line.
Michal
@Aranud,
Additionally, came the error:
[DCC Error] SynSelfTests.pas(3341): E2010 Incompatible types: 'PUTF8Char' and 'PAnsiChar'
--> check(not JsonPropNameValid(#0));
mORMot 1.18.1635 Delphi XE2-32, Delphi XE3-32
In Delphi XE3 also this error occurs.
Michal
@Aranud,
Why for Delphi XE2-32 and mORMot 1.18.1617 gets an error?:
[DCC Error] SynSelfTests.pas(5232): E2010 Incompatible types: 'PUTF8Char' and 'PAnsiChar'
--> Check(UTF8ContentNumberType('null')=sftUnknown);
In Delphi XE7-32 does not have this problem.
Michal
Arnaud,
Zeos 7.2 cope well with fpc-64bit.
Michael were a little worked hard at it.
You can peek into its functions.
Specifically to ZFastCode.pas and other from directory "core".
Michal
@ab,
Similarly to SynDBExplorer with ConnectionStrings manager(it may be in the ini file).
Compiling with the entire ZEOS will increase MVC-Server 2-3MB.
Michal