Skip to content

Instantly share code, notes, and snippets.

@synopse
Created July 9, 2021 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save synopse/83250a890fd23b0f8b748db227b3cc6d to your computer and use it in GitHub Desktop.
Save synopse/83250a890fd23b0f8b748db227b3cc6d to your computer and use it in GitHub Desktop.
mORMot 2 regression tests on another much smaller ATOM computer (the synopse server at dedibox)
synopse@sd-73991:~/temp$ ./mormot2tests
mORMot2 Regression Tests
--------------------------
1. Core units
1.1. Core base:
- RecordCopy: 743 assertions passed 77us
- TRawUtf8List: 190,172 assertions passed 206.29ms
- TDynArray: 1,091,804 assertions passed 384.90ms
- TDynArrayHashed: 1,599,070 assertions passed 2.38s
- TSynDictionary: 327,450 assertions passed 1.24s
- TSynQueue: 6,541,501 assertions passed 856.91ms
- TSynNameValue: 40,032 assertions passed 18.97ms
- TRawUtf8Interning: 2,000,013 assertions passed 469.63ms
500000 interning 16 KB in 189.57ms i.e. 2.5M/s, aver. 0us, 80.4 MB/s
500000 direct 15.2 MB in 37.32ms i.e. 12.7M/s, aver. 0us, 408.8 MB/s
- TObjArray: 3,230 assertions passed 2.72ms
- Custom RTL: 38,776 assertions passed 420.56ms
FillCharFast [] in 49.95ms, 7.7 GB/s
MoveFast [] in 5.19ms, 3 GB/s
small MoveFast [] in 9.19ms, 2.3 GB/s
big MoveFast [] in 109.68ms, 3.5 GB/s
- Fast string compare: 41 assertions passed 27us
- IdemPropName: 228 assertions passed 63us
- Url encoding: 167 assertions passed 881us
- GUID: 10,019 assertions passed 10.99ms
- ParseCommandArguments: 232 assertions passed 63us
- IsMatch: 4,250 assertions passed 550us
- TExprParserMatch: 140 assertions passed 170us
- Soundex: 35 assertions passed 35us
- Numerical conversions: 2,546,244 assertions passed 1.04s
100000 FloatToText in 157.86ms i.e. 618.5K/s, aver. 1us, 11.4 MB/s
100000 str in 72.60ms i.e. 1.3M/s, aver. 0us, 31.5 MB/s
100000 DoubleToShort in 26.20ms i.e. 3.6M/s, aver. 0us, 76.4 MB/s
100000 DoubleToAscii in 24.76ms i.e. 3.8M/s, aver. 0us, 81.7 MB/s
- Integers: 144,965 assertions passed 68.14ms
- crc32c: 320,100 assertions passed 120.34ms
pas 292.1 MB/s fast 879.2 MB/s sse42 3 GB/s sse42+aesni 2.4 GB/s
- Random32: 221,003 assertions passed 10.41ms
240000 Random32 in 10.25ms i.e. 22.3M/s, aver. 0us, 89.2 MB/s
- Bloom filters: 2,010,072 assertions passed 859.86ms
- DeltaCompress: 87 assertions passed 21.10ms
- Curr 64: 20,056 assertions passed 3.45ms
- CamelCase: 11 assertions passed 28us
- Bits: 32,657 assertions passed 81.61ms
- Ini files: 7,028 assertions passed 96.31ms
- UTF8: 1,184,892 assertions passed 1.54s
- Url decoding: 1,101 assertions passed 295us
- Mime types: 438 assertions passed 3.08ms
- Baudot code: 10,007 assertions passed 72.74ms
- Iso 8601 date and time: 200,831 assertions passed 19.26ms
- Time zones: 449 assertions passed 200.32ms
- Quick select: 4,015 assertions passed 173.89ms
- TSynCache: 404 assertions passed 130us
- TSynFilter: 804 assertions passed 2.72ms
- TSynValidate: 677 assertions passed 823us
- TSynLogFile: 43 assertions passed 768us
- TSynUniqueIdentifier: 1,300,002 assertions passed 1.31s
200000 ComputeNew in 42.54ms i.e. 4.4M/s, aver. 0us
Total failed: 0 / 19,853,789 - Core base PASSED 11.64s
1.2. Core process:
- RTTI: 1,338 assertions passed 890us
- Url encoding: 200 assertions passed 576us
- Encode decode JSON: 428,892 assertions passed 1.39s
- Wiki markdown to html: 56 assertions passed 129us
- Variants: 97 assertions passed 90us
- Mustache renderer: 166 assertions passed 1.10s
- TDocVariant: 91,819 assertions passed 283.05ms
- TDecimal128: 17,446 assertions passed 3.56ms
- BSON: 245,070 assertions passed 15.40ms
100000 TBsonObjectID.ComputeNew in 13.86ms i.e. 6.8M/s, aver. 0us
- TSelectStatement: 229 assertions passed 178us
- TSynMonitorUsage: 1,202 assertions passed 140us
Total failed: 0 / 786,515 - Core process PASSED 2.80s
1.3. Core compression:
- In memory compression: 21 assertions passed 1.21s
- GZIP format: 30 assertions passed 371.89ms
- ZIP format: 824 assertions passed 6.86s
- SynLZ: 23,190 assertions passed 197.51ms
- TAlgoCompress: 914 assertions passed 1.78s
TAlgoSynLZ 3.8 MB->2.2 MB: comp 133:76MB/s decomp 109:190MB/s
TAlgoLizard 3.8 MB->2.1 MB: comp 8:4MB/s decomp 273:497MB/s
TAlgoLizardFast 3.8 MB->2.4 MB: comp 92:58MB/s decomp 461:732MB/s
TAlgoLizardHuffman 3.8 MB->2 MB: comp 35:19MB/s decomp 174:322MB/s
TAlgoDeflate 3.8 MB->1.7 MB: comp 7:3MB/s decomp 20:46MB/s
TAlgoDeflateFast 3.8 MB->1.7 MB: comp 12:5MB/s decomp 19:41MB/s
Total failed: 0 / 24,979 - Core compression PASSED 10.46s
1.4. Core collections:
- ISynList: 5,910,040 assertions passed 1.32s
100000 random Byte in 3ms i.e. 31.7M/s, aver. 0us
100000 add Byte in 4.20ms i.e. 22.7M/s, aver. 0us
100000 getitem Byte in 1ms i.e. 94.8M/s, aver. 0us
100000 in Byte in 771us i.e. 123.6M/s, aver. 0us
400000 IList<Byte> in 9ms i.e. 42.3M/s, aver. 0us
100000 sort Byte in 19.92ms i.e. 4.7M/s, aver. 0us
100000 find Byte in 13.72ms i.e. 6.9M/s, aver. 0us
100000 random Word in 3.18ms i.e. 29.9M/s, aver. 0us
100000 add Word in 4.22ms i.e. 22.5M/s, aver. 0us
100000 getitem Word in 1ms i.e. 94.5M/s, aver. 0us
100000 in Word in 757us i.e. 125.9M/s, aver. 0us
400000 IList<Word> in 9.20ms i.e. 41.4M/s, aver. 0us
100000 sort Word in 11.10ms i.e. 8.5M/s, aver. 0us
100000 find Word in 24.65ms i.e. 3.8M/s, aver. 0us
100000 random Integer in 3.30ms i.e. 28.8M/s, aver. 0us
100000 add Integer in 4.54ms i.e. 21M/s, aver. 0us
100000 getitem Integer in 1.03ms i.e. 92.1M/s, aver. 0us
100000 in Integer in 756us i.e. 126.1M/s, aver. 0us
400000 IList<Integer> in 9.65ms i.e. 39.4M/s, aver. 0us
100000 sort Integer in 11.24ms i.e. 8.4M/s, aver. 0us
100000 find Integer in 29.87ms i.e. 3.1M/s, aver. 0us
100000 random Cardinal in 3.23ms i.e. 29.4M/s, aver. 0us
100000 add Cardinal in 4.49ms i.e. 21.2M/s, aver. 0us
100000 getitem Cardinal in 1.03ms i.e. 92.2M/s, aver. 0us
100000 in Cardinal in 804us i.e. 118.6M/s, aver. 0us
400000 IList<Cardinal> in 9.61ms i.e. 39.6M/s, aver. 0us
100000 sort Cardinal in 29.38ms i.e. 3.2M/s, aver. 0us
100000 find Cardinal in 29.04ms i.e. 3.2M/s, aver. 0us
100000 random Int64 in 5.19ms i.e. 18.3M/s, aver. 0us
100000 add Int64 in 4.89ms i.e. 19.4M/s, aver. 0us
100000 getitem Int64 in 1.07ms i.e. 88.7M/s, aver. 0us
100000 in Int64 in 854us i.e. 111.6M/s, aver. 0us
400000 IList<Int64> in 12.07ms i.e. 31.5M/s, aver. 0us
100000 sort Int64 in 11.11ms i.e. 8.5M/s, aver. 0us
100000 find Int64 in 32.54ms i.e. 2.9M/s, aver. 0us
100000 random QWord in 5.24ms i.e. 18.1M/s, aver. 0us
100000 add QWord in 4.94ms i.e. 19.2M/s, aver. 0us
100000 getitem QWord in 1.07ms i.e. 88.8M/s, aver. 0us
100000 in QWord in 800us i.e. 119.2M/s, aver. 0us
400000 IList<QWord> in 12.12ms i.e. 31.4M/s, aver. 0us
100000 sort QWord in 11.19ms i.e. 8.5M/s, aver. 0us
100000 find QWord in 32.02ms i.e. 2.9M/s, aver. 0us
100000 random Single in 4.64ms i.e. 20.5M/s, aver. 0us
100000 add Single in 4.53ms i.e. 21M/s, aver. 0us
100000 getitem Single in 1.11ms i.e. 85.5M/s, aver. 0us
100000 in Single in 866us i.e. 110.1M/s, aver. 0us
400000 IList<Single> in 11.20ms i.e. 34M/s, aver. 0us
100000 sort Single in 32.17ms i.e. 2.9M/s, aver. 0us
100000 find Single in 32ms i.e. 2.9M/s, aver. 0us
100000 random Double in 5.11ms i.e. 18.6M/s, aver. 0us
100000 add Double in 4.91ms i.e. 19.4M/s, aver. 0us
100000 getitem Double in 1.22ms i.e. 77.8M/s, aver. 0us
100000 in Double in 895us i.e. 106.5M/s, aver. 0us
400000 IList<Double> in 12.20ms i.e. 31.2M/s, aver. 0us
100000 sort Double in 15.21ms i.e. 6.2M/s, aver. 0us
100000 find Double in 34.71ms i.e. 2.7M/s, aver. 0us
100000 random TDateTime in 5.19ms i.e. 18.3M/s, aver. 0us
100000 add TDateTime in 4.94ms i.e. 19.3M/s, aver. 0us
100000 getitem TDateTime in 1.23ms i.e. 77.1M/s, aver. 0us
100000 in TDateTime in 896us i.e. 106.4M/s, aver. 0us
400000 IList<TDateTime> in 12.32ms i.e. 30.9M/s, aver. 0us
100000 sort TDateTime in 21.25ms i.e. 4.4M/s, aver. 0us
100000 find TDateTime in 34.70ms i.e. 2.7M/s, aver. 0us
100000 random UTF8String in 27.61ms i.e. 3.4M/s, aver. 0us
100000 add UTF8String in 6.39ms i.e. 14.9M/s, aver. 0us
100000 getitem UTF8String in 3.09ms i.e. 30.8M/s, aver. 0us
100000 in UTF8String in 2.44ms i.e. 39M/s, aver. 0us
400000 IList<UTF8String> in 39.60ms i.e. 9.6M/s, aver. 0us
100000 sort UTF8String in 64.67ms i.e. 1.4M/s, aver. 0us
100000 find UTF8String in 107.94ms i.e. 904.7K/s, aver. 1us
100000 random UnicodeString in 31.36ms i.e. 3M/s, aver. 0us
100000 add UnicodeString in 6.19ms i.e. 15.3M/s, aver. 0us
100000 getitem UnicodeString in 3.32ms i.e. 28.6M/s, aver. 0us
100000 in UnicodeString in 2.78ms i.e. 34.2M/s, aver. 0us
400000 IList<UnicodeString> in 43.73ms i.e. 8.7M/s, aver. 0us
100000 sort UnicodeString in 62.99ms i.e. 1.5M/s, aver. 0us
100000 find UnicodeString in 109.47ms i.e. 892K/s, aver. 1us
100000 random Variant in 13.05ms i.e. 7.3M/s, aver. 0us
100000 add Variant in 8.31ms i.e. 11.4M/s, aver. 0us
100000 getitem Variant in 11.81ms i.e. 8M/s, aver. 0us
100000 in Variant in 10.71ms i.e. 8.9M/s, aver. 0us
400000 IList<Variant> in 43.96ms i.e. 8.6M/s, aver. 0us
100000 sort Variant in 236.18ms i.e. 413.4K/s, aver. 2us
Total failed: 0 / 5,910,040 - Core collections PASSED 1.32s
1.5. Core crypto:
- MD5: 166 assertions passed 448us
- SHA1: 8 assertions passed 7.06ms
- SHA256: 40 assertions passed 85.22ms
- SHA512: 32 assertions passed 68.64ms
- SHA3: 8,225 assertions passed 97.93ms
- AES: 72,700 assertions passed 1.06s
cypher with AES-NI: 677us, without: 2.76ms
- AES_GCM: 215 assertions passed 113us
- RC4: 1,016 assertions passed 3.74ms
- Hashes: 9 assertions passed 247.30ms
- Base64: 12,064 assertions passed 79.26ms
- TAesPNRG: 262,624 assertions passed 696.16ms
100000 mORMot Random32 in 14.37ms i.e. 6.6M/s, aver. 0us, 26.5 MB/s
mORMot FillRandom in 264us, 361.2 MB/s
100000 OpenSSL Random32 in 368.87ms i.e. 264.7K/s, aver. 3us, 1 MB/s
OpenSSL FillRandom in 225us, 423.8 MB/s
- CryptDataForCurrentUser: 5,000 assertions passed 14.49ms
2000 AES-CFB in 13.62ms i.e. 143.3K/s, aver. 6us, 76.5 MB/s
- JWT: 164,917 assertions passed 2.86s
1000 HS256 in 5.08ms i.e. 192K/s, aver. 5us
1000 HS384 in 6.17ms i.e. 158.1K/s, aver. 6us
1000 HS512 in 6.14ms i.e. 158.9K/s, aver. 6us
1000 S3224 in 4.75ms i.e. 205.5K/s, aver. 4us
1000 S3256 in 4.81ms i.e. 202.9K/s, aver. 4us
1000 S3384 in 4.80ms i.e. 203.4K/s, aver. 4us
1000 S3512 in 4.89ms i.e. 199.6K/s, aver. 4us
1000 S3S128 in 4.79ms i.e. 203.6K/s, aver. 4us
1000 S3S256 in 4.86ms i.e. 200.9K/s, aver. 4us
100 ES256 in 49.56ms i.e. 1.9K/s, aver. 495us
100 RS256 in 22.29ms i.e. 4.3K/s, aver. 222us
100 RS384 in 22.48ms i.e. 4.3K/s, aver. 224us
100 RS512 in 22.45ms i.e. 4.3K/s, aver. 224us
100 PS256 in 23.10ms i.e. 4.2K/s, aver. 231us
100 PS384 in 23.30ms i.e. 4.1K/s, aver. 233us
100 PS512 in 23.12ms i.e. 4.2K/s, aver. 231us
100 ES256 in 48.10ms i.e. 2K/s, aver. 481us
100 ES384 in 365.29ms i.e. 273/s, aver. 3.65ms
100 ES512 in 346.18ms i.e. 288/s, aver. 3.46ms
100 ES256K in 178ms i.e. 561/s, aver. 1.78ms
100 EdDSA in 41.76ms i.e. 2.3K/s, aver. 417us
- TBinaryCookieGenerator: 82,944 assertions passed 26.01ms
16384 generate in 8.23ms i.e. 1.9M/s, aver. 0us
16384 validate in 6.04ms i.e. 2.5M/s, aver. 0us
- Catalog: 210 assertions passed 91us
- Benchmark: 110,000 assertions passed 1.46s
2500 crc32c in 1.38ms i.e. 1.7M/s or 3.7 GB/s
2500 xxhash32 in 2.26ms i.e. 1M/s or 2.2 GB/s
2500 crc32 in 3.40ms i.e. 717K/s or 1.5 GB/s
2500 adler32 in 1.40ms i.e. 1.7M/s or 3.7 GB/s
2500 hash32 in 1.10ms i.e. 2.1M/s or 4.7 GB/s
2500 aesnihash in 2.62ms i.e. 0.9M/s or 1.9 GB/s
2500 md5 in 17.93ms i.e. 136.1K/s or 296.6 MB/s
2500 sha1 in 45.34ms i.e. 53.8K/s or 117.3 MB/s
2500 hmacsha1 in 49.66ms i.e. 49.1K/s or 107.1 MB/s
2500 sha256 in 57.39ms i.e. 42.5K/s or 92.7 MB/s
2500 hmacsha256 in 62.79ms i.e. 38.8K/s or 84.7 MB/s
2500 sha384 in 51.20ms i.e. 47.6K/s or 103.9 MB/s
2500 hmacsha384 in 60.59ms i.e. 40.2K/s or 87.8 MB/s
2500 sha512 in 51.35ms i.e. 47.5K/s or 103.6 MB/s
2500 hmacsha512 in 60.62ms i.e. 40.2K/s or 87.7 MB/s
2500 sha3_256 in 109.61ms i.e. 22.2K/s or 48.5 MB/s
2500 sha3_512 in 200.18ms i.e. 12.1K/s or 26.5 MB/s
2500 rc4 in 35.85ms i.e. 68K/s or 148.3 MB/s
2500 mormot aes-128-cfb in 14.40ms i.e. 169.4K/s or 369.2 MB/s
2500 mormot aes-128-ofb in 14.30ms i.e. 170.6K/s or 371.9 MB/s
2500 mormot aes-128-c64 in 17.27ms i.e. 141.3K/s or 308 MB/s
2500 mormot aes-128-ctr in 11.17ms i.e. 218.5K/s or 476.3 MB/s
2500 mormot aes-128-cfc in 17.21ms i.e. 141.7K/s or 309 MB/s
2500 mormot aes-128-ofc in 23.75ms i.e. 102.7K/s or 223.9 MB/s
2500 mormot aes-128-ctc in 19.21ms i.e. 127K/s or 276.9 MB/s
2500 mormot aes-128-gcm in 21.27ms i.e. 114.7K/s or 250.1 MB/s
2500 mormot aes-256-cfb in 19.72ms i.e. 123.7K/s or 269.7 MB/s
2500 mormot aes-256-ofb in 19.63ms i.e. 124.3K/s or 271 MB/s
2500 mormot aes-256-c64 in 23.38ms i.e. 104.3K/s or 227.4 MB/s
2500 mormot aes-256-ctr in 14.79ms i.e. 164.9K/s or 359.5 MB/s
2500 mormot aes-256-cfc in 21.68ms i.e. 112.6K/s or 245.4 MB/s
2500 mormot aes-256-ofc in 28.78ms i.e. 84.8K/s or 184.8 MB/s
2500 mormot aes-256-ctc in 22.86ms i.e. 106.7K/s or 232.7 MB/s
2500 mormot aes-256-gcm in 24.96ms i.e. 97.7K/s or 213.1 MB/s
2500 openssl aes-128-cfb in 18.76ms i.e. 130K/s or 283.4 MB/s
2500 openssl aes-128-ofb in 22.57ms i.e. 108.1K/s or 235.6 MB/s
2500 openssl aes-128-ctr in 10.12ms i.e. 241.2K/s or 525.7 MB/s
2500 openssl aes-128-gcm in 19.10ms i.e. 127.7K/s or 278.4 MB/s
2500 openssl aes-256-cfb in 24.05ms i.e. 101.4K/s or 221.1 MB/s
2500 openssl aes-256-ofb in 23.36ms i.e. 104.4K/s or 227.6 MB/s
2500 openssl aes-256-ctr in 13.20ms i.e. 184.9K/s or 403 MB/s
2500 openssl aes-256-gcm in 22.22ms i.e. 109.8K/s or 239.4 MB/s
2500 shake128 in 78.57ms i.e. 31K/s or 67.7 MB/s
2500 shake256 in 104.62ms i.e. 23.3K/s or 50.8 MB/s
Total failed: 0 / 720,170 - Core crypto PASSED 6.72s
1.6. Core ecc:
- Reference vectors: 23 assertions passed 12.77ms
- ECC: 1,803 assertions passed 454.35ms
300 Ecc256r1MakeKey in 25ms i.e. 11.7K/s, aver. 83us
300 Ecc256r1Sign in 36.93ms i.e. 7.9K/s, aver. 123us
300 Ecc256r1Verify in 145.61ms i.e. 2K/s, aver. 485us
598 Ecc256r1SharedSecret in 239.05ms i.e. 2.4K/s, aver. 399us
- Certificates and signatures: 91 assertions passed 25.43ms
- Ecc command line tool: 703 assertions passed 371.85ms
- ECDHE stream protocol: 63,393 assertions passed 1.67s
100 efAesCrc128 in 5.62ms i.e. 17.3K/s, aver. 56us, 327.6 MB/s
100 efAesCfb128 in 5.60ms i.e. 17.4K/s, aver. 56us, 328.8 MB/s
100 efAesOfb128 in 5.59ms i.e. 17.4K/s, aver. 55us, 329.7 MB/s
100 efAesCtr128 in 4.58ms i.e. 21.2K/s, aver. 45us, 401.7 MB/s
100 efAesCbc128 in 7.41ms i.e. 13.1K/s, aver. 74us, 248.8 MB/s
100 efAesCrc256 in 7.23ms i.e. 13.4K/s, aver. 72us, 254.8 MB/s
100 efAesCfb256 in 7.47ms i.e. 13K/s, aver. 74us, 246.8 MB/s
100 efAesOfb256 in 7.38ms i.e. 13.2K/s, aver. 73us, 249.5 MB/s
100 efAesCtr256 in 5.83ms i.e. 16.7K/s, aver. 58us, 316.1 MB/s
100 efAesCbc256 in 9.44ms i.e. 10.3K/s, aver. 94us, 195.2 MB/s
100 efAesGcm128 in 5.81ms i.e. 16.7K/s, aver. 58us, 316.9 MB/s
100 efAesGcm256 in 6.89ms i.e. 14.1K/s, aver. 68us, 267.4 MB/s
100 efAesCtc128 in 6.26ms i.e. 15.5K/s, aver. 62us, 294.4 MB/s
100 efAesCtc256 in 7.50ms i.e. 13K/s, aver. 75us, 245.6 MB/s
- OpenSSL: 532 assertions passed 2.99s
3 RSA 2048 Generation in 1.39s i.e. 2/s, aver. 465.09ms
30 RSA 2048 Sign in 200.84ms i.e. 149/s, aver. 6.69ms
30 RSA 2048 Verify in 6.47ms i.e. 4.5K/s, aver. 215us
3 RSA-PSS 2048 Generation in 995.17ms i.e. 3/s, aver. 331.72ms
30 RSA-PSS 2048 Sign in 201.18ms i.e. 149/s, aver. 6.70ms
30 RSA-PSS 2048 Verify in 6.72ms i.e. 4.3K/s, aver. 224us
100 prime256v1 Generation in 26.41ms i.e. 3.6K/s, aver. 264us
100 prime256v1 Sign in 22.12ms i.e. 4.4K/s, aver. 221us
100 prime256v1 Verify in 47.52ms i.e. 2K/s, aver. 475us
100 ed25519 Generation in 18.43ms i.e. 5.2K/s, aver. 184us
100 ed25519 Sign in 32.38ms i.e. 3K/s, aver. 323us
100 ed25519 Verify in 40.59ms i.e. 2.4K/s, aver. 405us
Total failed: 0 / 66,545 - Core ecc PASSED 5.53s
1.7. Network protocols:
- Rtsp over http: 1,900 assertions passed 1.34s
- Tunneling: no assertion 100.33ms
Total failed: 0 / 1,900 - Network protocols PASSED 1.44s
2. ORM
2.1. Orm core:
- TOrm: 93 assertions passed 592us
- TOrmSigned: 200 assertions passed 4.68ms
- TOrmModel: 16 assertions passed 66us
- TRestServerFullMemory: 1,130,745 assertions passed 3.53s
Total failed: 0 / 1,131,054 - Orm core PASSED 3.54s
2.2. Sqlite file:
- Database direct access: 22,284 assertions passed 301.41ms
- Virtual table direct access: 12 assertions passed 959us
- TOrmTableJson: 144,083 assertions passed 169.84ms
- TRestClientDB: 608,198 assertions passed 3.39s
- Regexp function: 6,015 assertions passed 33.95ms
- TRecordVersion: 20,060 assertions passed 183.86ms
Total failed: 0 / 800,652 - Sqlite file PASSED 4.08s
2.3. Sqlite file WAL:
- Database direct access: 22,284 assertions passed 308.87ms
- Virtual table direct access: 12 assertions passed 894us
- TOrmTableJson: 144,083 assertions passed 167.56ms
- TRestClientDB: 608,198 assertions passed 3.43s
- Regexp function: 6,015 assertions passed 34.16ms
- TRecordVersion: 20,060 assertions passed 184.55ms
Total failed: 0 / 800,652 - Sqlite file WAL PASSED 4.13s
2.4. Sqlite file memory map:
- Database direct access: 22,264 assertions passed 278.90ms
- Virtual table direct access: 12 assertions passed 987us
- TOrmTableJson: 144,083 assertions passed 167.57ms
- TRestClientDB: 608,196 assertions passed 3.38s
- Regexp function: 6,015 assertions passed 33.89ms
- TRecordVersion: 20,060 assertions passed 184.03ms
Total failed: 0 / 800,630 - Sqlite file memory map PASSED 4.05s
2.5. Sqlite memory:
- Database direct access: 22,264 assertions passed 273.50ms
- Virtual table direct access: 12 assertions passed 803us
- TOrmTableJson: 144,083 assertions passed 163.51ms
- TRestClientDB: 676,505 assertions passed 5.27s
- Regexp function: 6,015 assertions passed 34.08ms
- TRecordVersion: 20,060 assertions passed 184.06ms
- TOrmTableWritable: 24,056 assertions passed 9.58ms
- RTree: 280,024 assertions passed 4.54s
10000 With RTree in 2.31s i.e. 4.2K/s, aver. 231us
10000 With RTreeInteger in 2.22s i.e. 4.3K/s, aver. 222us
- Shard write: 10,602 assertions passed 395.60ms
- Shard read: 140,001 assertions passed 885.13ms
- Shard read after purge: 114,003 assertions passed 708.66ms
- MaxShardCount: 144,002 assertions passed 742.12ms
Total failed: 0 / 1,581,627 - Sqlite memory PASSED 13.21s
2.6. External database:
- SynDBRemote: 35,589 assertions passed 454.90ms
- DB properties persistence: 7 assertions passed 256us
- External records: 2 assertions passed 314us
- Auto adapt SQL: 1,041 assertions passed 4.24ms
- Crypted database: 253,277 assertions passed 300.29ms
- External via REST: 170,355 assertions passed 2.44s
- External via virtual table: 170,355 assertions passed 4.14s
- External via REST with change tracking: 180,455 assertions passed 4.85s
Total failed: 0 / 811,081 - External database PASSED 12.19s
2.7. Client server access:
- TRestHttpServer: 2 assertions passed 4.62ms
using Ubuntu 4.4.0 epoll
- TRestHttpClient: 4 assertions passed 26.60ms
using TRestHttpClientSocket
- HTTP client keep alive: 4,088 assertions passed 228.47ms
4.7 KB, first 3.39ms, done 213.64ms i.e. 4680/s, aver. 213us, 21.5 MB/s
- HTTP client multi connect: 4,088 assertions passed 371.37ms
4.7 KB, first 477us, done 354.05ms i.e. 2824/s, aver. 354us, 12.9 MB/s
- Direct in process access: 4,057 assertions passed 66.15ms
4.7 KB, first 114us, done 61.09ms i.e. 16367/s, aver. 61us, 75.2 MB/s
- HTTP several DB servers: 12,607 assertions passed 746.92ms
4.7 KB, first 587us, done 213.90ms i.e. 4675/s, aver. 213us, 21.5 MB/s
4.7 KB, first 571us, done 213.81ms i.e. 4676/s, aver. 213us, 21.5 MB/s
4.7 KB, first 565us, done 213.62ms i.e. 4681/s, aver. 213us, 21.5 MB/s
Total failed: 0 / 24,846 - Client server access PASSED 1.45s
2.8. Multi thread process:
- Create thread pool: 1 assertion passed 6.61ms
- TRestServerDB: 7,302 assertions passed 292.71ms
1=14744/s 2=13828/s 5=13424/s 10=13474/s 30=13462/s 50=9219/s
- TRestClientDB: 7,300 assertions passed 352.97ms
1=11991/s 2=12099/s 5=11243/s 10=12052/s 30=11103/s 50=6955/s
- TCP sockets: 7,301 assertions passed 554.95ms
1=4500/s 2=6398/s 5=7568/s 10=8280/s 30=7790/s 50=7786/s
- Unix domain sockets: 7,301 assertions passed 506.79ms
1=5238/s 2=7278/s 5=7522/s 10=8288/s 30=8595/s 50=8612/s
- Websockets: 7,301 assertions passed 708.87ms
1=3439/s 2=5664/s 5=6403/s 10=6190/s 30=6385/s 50=4871/s
- libcurl: 7,292 assertions passed 815.80ms
1=3171/s 2=5033/s 5=6398/s 10=6214/s 30=5841/s 50=3081/s
- Locked: 7,302 assertions passed 330.32ms
1=11934/s 2=12024/s 5=11201/s 10=11197/s 30=10949/s 50=10318/s
- Unlocked: 7,301 assertions passed 340.68ms
1=11959/s 2=11258/s 5=10163/s 10=10718/s 30=10928/s 50=10517/s
- Main thread: 7,302 assertions passed 315.82ms
1=8916/s 2=13117/s 5=13288/s 10=12946/s 30=12282/s 50=11421/s
- Background thread: 7,301 assertions passed 403.77ms
1=8811/s 2=8592/s 5=9218/s 10=9933/s 30=9628/s 50=8844/s
Total failed: 0 / 73,004 - Multi thread process PASSED 4.68s
3. SOA
3.1. Core script:
- Quick JS low level: 40,057 assertions passed 251.45ms
Total failed: 0 / 40,057 - Core script PASSED 251.51ms
3.2. Network protocols:
- Rtsp over http: 1,900 assertions passed 1.30s
- Tunneling: no assertion 100.29ms
Total failed: 0 / 1,900 - Network protocols PASSED 1.40s
3.3. Service oriented architecture:
- Weak interfaces: 56 assertions passed 110us
- Service initialization: 268 assertions passed 4.76ms
- Direct call: 606,564 assertions passed 53.38ms
- Server side: 606,584 assertions passed 57.95ms
- Client side REST: 808,779 assertions passed 3.02s
- Client side REST as json object: 808,773 assertions passed 3.14s
- Client side REST sessions stats: 808,773 assertions passed 3.30s
- Client side REST locked: 808,777 assertions passed 3.05s
- Client side REST main thread: 808,777 assertions passed 5.77s
- Client side REST background thread: 808,777 assertions passed 6.11s
- Client side REST sign with crc 32c: 808,773 assertions passed 2.99s
- Client side REST sign with xxhash: 808,773 assertions passed 3s
- Client side REST sign with md 5: 808,773 assertions passed 3.10s
- Client side REST sign with sha 256: 808,773 assertions passed 3.23s
- Client side REST sign with sha 512: 808,773 assertions passed 3.54s
- Client side REST weak authentication: 808,773 assertions passed 2.90s
- Client side REST basic authentication: 808,773 assertions passed 3.67s
- Client side REST custom record layout: 808,773 assertions passed 3.12s
- Client side REST service log to DB: 808,773 assertions passed 3.98s
- Client side json RPC: 808,773 assertions passed 3.24s
- Test over HTTP: 10,987 assertions passed 477.76ms
- Security: 139 assertions passed 4.89ms
- Mocks and stubs: 30,030 assertions passed 131.09ms
Total failed: 0 / 14,195,014 - Service oriented architecture PASSED 57.98s
3.4. Bidirectional remote connection:
- Websockets protocols: 30,000 assertions passed 21.11ms
- Run http server: 2 assertions passed 4.38ms
- Soa callback on server side: 4,580 assertions passed 6.10ms
- Soa callback via json websockets: 6,898 assertions passed 450.03ms
- Soa callback via binary websockets: 6,898 assertions passed 487.71ms
- Relay start: 4 assertions passed 9.82ms
- Relay soa callback via json websockets: 6,899 assertions passed 1.08s
- Relay connection recreate: 1 assertion passed 4.76ms
- Relay soa callback via binary websockets: 6,899 assertions passed 1.01s
- Relay shutdown: 2 assertions passed 119.92ms
- TRecordVersion: 20,068 assertions passed 220.33ms
Total failed: 0 / 82,251 - Bidirectional remote connection PASSED 3.42s
Generated with: Free Pascal 3.2 64 bit Linux compiler
Time elapsed for all tests: 2m30
Performed 2021-07-09 22:47:19 by synopse on sd-73991
Total assertions failed for all test suits: 0 / 47,706,706
! All tests passed successfully.
Flags: pause debug repmemleak
Small: blocks=17K size=1MB (part of Medium arena)
Medium: 8MB/126MB peak=25MB current=7 alloc=101 free=94 sleep=20K
Large: 0B/3GB peak=22MB current=0 alloc=1K free=1K sleep=0
Total Sleep: count=23K
Small Sleep: getmem=212 freemem=2K
freemem(64)=2K getmem(240)=212 freemem(160)=54 freemem(80)=47
freemem(48)=35 freemem(672)=5 freemem(144)=5 freemem(48)=4
Small Blocks since beginning: 64M/6GB
48=24M 64=12M 32=6M 80=5M 128=3M 160=2M 96=2M 672=1M
240=1M 144=744K 192=735K 224=707K 112=702K 176=283K 288=208K 528=204K
Small Blocks current: 17K/1MB
64=6K 48=5K 80=3K 96=770 352=429 32=314 112=160 128=134
160=110 192=48 256=40 624=35 144=33 576=28 384=28 304=18
synopse@sd-73991:~/temp$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment