Skip to content

Instantly share code, notes, and snippets.

View synopse's full-sized avatar
🏠
Working from home

ab synopse

🏠
Working from home
View GitHub Profile
28/02/2024 14:14:59.695 Enter 1 mormot.soa.client.TServiceFactoryClient(e6e960).InternalInvoke ICalculator.RepeatTextArray("jzeozo30hh12X1fXPDZmW-Jm-Geu97jMDWJWBB7F-2dR7JV6UWslteqvU47jL-8m00qn1NKxJo-TSaAhbMa-2N4xSVF05bsX5FVz1nrhJUGSfhtLmz6h.YR4Oj40ejo.Z1PgCr-2HgDZMcRPMgzz-1FOD--nD.n-dRo11yMViBS22-GsTCU9hPsNrnhW.l3.apk..LZLO209H5.btu2nkx9SizjVMJp75.rR.EolhCKBVkL7leZJOn5WD2vmfTWPE4Ktn-oHoW1SxbjW81WZluYo6OjOK5snP71TOClq3NpsLp73aqd.2xvemPzW9EMgb-12Src4Y1sPiJETrbdGO4vuRn1aF088zMfX.dnOUzEiUTF.b924jdrY06W6yxg.AYaSPPv1YBov2iFOj7rEwJEELC41x7blX2nwvS.XeJEqDqExhczb4ozdC.5MxrEe-9oj-0RZot6e-3R8SWxwsC7Z-nb569.F1hvj9aKxUiiTCGr95YrKbTKPPJTS2wOGlylCwfP1tyALVJlYwopW7O0aGqLph1rposGjthJVX-c6.u..BEzSW4rgj0bd8bC1fF0k-UCPNh4aFnfu5-HM00TG",1000)
28/02/2024 14:14:59.695 Enter 1 mormot.rest.http.client.TRestHttpClientSocket(0102b0f0).InternalUri POST
28/02/2024 14:14:59.695 Trace 1 mormot.rest.http.client.TRestHttpClientSocket(0102b0f0) InternalRequest POST calling THttpClientSocket(eaefd0).Request
28/02/2024 14:
28/02/2024 09:48:30.903 Enter 1 mormot.soa.client.TServiceFactoryClient(e6e960).InternalInvoke ICalculator.RepeatTextArray("Y6ZhDnJjLRdxrZ9CinREXzp3d4Bg1NwCbX1mHuZa559-36S0zgGMPY.y0A.zke.HXLRXgA92htimDv7-ZVOv7.Tl-mgutswhHpag-okPr6E1.y9pD0RndhrA.wdxF1seZKUn-R7DmKlhJ0.xZuAEd5Jj1AYZRV.NnxACgYRZCRjUCY2nd0iglOP6j-4-VGA8b-ukm8lJvK-5iJN4h3GpbgCWk2dMYD9kbbA0qGqsEx9fa10aMpj-nRtpsFBMWVFDsK3P.n2mT-uPNyM.X1HBw33n4MzFj9VKkEeVJJVFFyTY6pJ6wB0cgNJOdd.8e2hfwW7Cmet.mO3JhfGKyyO3.n98AG.mw-.NDAHthACvyejurkvL0R8xre.EUN.SSRJarxGvcH-TVvf-987vqJ5-aXPN-9eWj2HWWaE6-Ha5M-OlVeFZcWC725lgTbEirBC-FMLmYL7JTGJ6S7os1rvM9FB0mEmyXC4JbVOLPPxnG1twX2FTeDEzOE6XuTcan6hXPmpYtX383J.UmFdboPhBT874NZiCy-p8LeBr9Y8AiAwWhC.TnEApyFvtB.psA2g.legZxBjHG2-b1gdcUgO3EBaA",1000)
28/02/2024 09:48:30.903 Enter 1 mormot.rest.http.client.TRestHttpClientSocket(0102b0f0).InternalUri POST
28/02/2024 09:48:30.903 Trace 1 mormot.rest.http.client.TRestHttpClientSocket(0102b0f0) InternalRequest POST calling THttpClientSocket(eaefd0).Request
28/02/2024 09:
@synopse
synopse / gist:cfc83f68db656ae144a8e1a23832cd17
Created July 13, 2023 20:53
mORMot 2.1.5652 Generated with: Delphi 10.3 Rio 64 bit Win compiler
c:\Temp\tempbuild\exe>mormot2tests
mORMot2 Regression Tests
--------------------------
1. Core units
1.1. Core base:
- RecordCopy: 746 assertions passed 459us
@synopse
synopse / gist:8b994c0d26efee46b1746e1dce6296eb
Created February 7, 2023 20:40
TUriRouter tree during SOA regression tests
root
/
c
omplex
calculator
/
s
ub
stract
tract
key := hextobin('11111111111111111111111111111111');
iv := hextobin('4D4554000000000100000000');
aad := hextobin('3033333333333333333333333333333333');
cleartext := hextobin('0fc00000010c07e6091a0103272e5aff8880020209060001190900ff01010206090c07e6091a0103230000ff8880115a1749cb251d1749cb251d1749cb251d1749cb251d');
while length(cleartext) and 15 <> 0 do
cleartext := cleartext + #0;
writeln;
FillZero(tag);
aes := TAesGcm.Create(pointer(key)^, 128);
@synopse
synopse / raw.pas
Created August 12, 2022 07:12
latest raw for TechEmpower framework benchmarks
program raw;
{
TechEmpower framework benchmarks implementation
See https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview
}
{$I mormot.defines.inc}
{.$define USE_SQLITE3}
@synopse
synopse / gist:6305b88eb8a0f62913dafa5397f37dd5
Created September 2, 2022 12:05
Server Seide Stats of Latest TFB tests on mORMot 2
THttpAsyncServer running on localhost:8080; num thread=16 db=PostgreSQL
Press Ctrl+C or use SIGTERM to terminate
{
"ApiVersion": "Debian Linux 5.10.0 epoll",
"ServerName": "mORMot2 (Linux)",
"ProcessName": "8080",
@synopse
synopse / gist:7ec565ba14029fe1512cd6435d7f7b3a
Created September 2, 2022 10:53
Latest TFB tests on mORMot 2
abouchez@tisab:/var/tmp$ wrk -c 100 -d 15s -t 2 http://localhost:8080/plaintext
Running 15s test @ http://localhost:8080/plaintext
2 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.82ms 6.30ms 52.61ms 89.39%
Req/Sec 47.47k 14.85k 89.63k 68.12%
1419041 requests in 15.05s, 221.94MB read
Requests/sec: 94303.33
Transfer/sec: 14.75MB
abouchez@tisab:/var/tmp$ wrk -c 100 -d 15s -t 2 http://localhost:8080/db
@synopse
synopse / raw.pas
Last active August 12, 2022 07:07
call TSynMustache.RenderDataArray to avoid a temp TDocVariant instance
program raw;
{
TechEmpower framework benchmarks implementation
See https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview
}
{$I mormot.defines.inc}program raw;
{
@synopse
synopse / gist:eb38cdea7fbfb56fea989ef6df14504f
Last active July 18, 2022 16:56
updated raw.pas with ORM
program raw;
{
TechEmpower framework benchmarks implementation
See https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview
}
{$I mormot.defines.inc}
{ $define USE_SQLITE3}