mirror of
https://github.com/aziascreations/PB-MessagePack.git
synced 2026-11-24 18:28:44 +01:00
Added examples, Added performance tests, Updated readme
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
; Workload shared by every implementation in this folder, keep `PerfPython.py` and `DotNet/Program.cs` in sync.
|
||||
;
|
||||
; `#Perf_Maps` top-level maps are written, then read, each holding `#Perf_Entries` entries:
|
||||
; "Key00" to "Key15" (FixStr), mapped to 0 to 15 (FixInt), in that order.
|
||||
; 16 entries make it a Map16, the smallest format code that fits.
|
||||
; `NsPerOp` is the time per map.
|
||||
;
|
||||
; Write check: the encoded size.
|
||||
; Read check: the sum of the keys' length and of the values.
|
||||
|
||||
#Perf_Maps = 100000
|
||||
#Perf_Entries = 16
|
||||
|
||||
; 3 bytes of header, then 6 bytes per key and 1 per value.
|
||||
#Perf_EncodedSize = #Perf_Maps * (3 + #Perf_Entries * 7)
|
||||
Reference in New Issue
Block a user