stress-data housekeeping

This commit is contained in:
Peter Taoussanis 2022-06-25 12:40:52 +02:00
parent d2b994aafc
commit 049197072c
2 changed files with 13 additions and 11 deletions

View file

@ -58,11 +58,11 @@ As an example of what it can do, let's take a look at Nippy's own reference stre
```clojure ```clojure
nippy/stress-data nippy/stress-data
=> =>
{:bytes (byte-array [(byte 1) (byte 2) (byte 3)]) {:nil nil
:nil nil
:true true :true true
:false false :false false
:False (Boolean. false) :boxed-false (Boolean. false)
:char \ಬ :char \ಬ
:str-short "ಬಾ ಇಲ್ಲಿ ಸಂಭವಿಸ" :str-short "ಬಾ ಇಲ್ಲಿ ಸಂಭವಿಸ"
:str-long (apply str (range 1000)) :str-long (apply str (range 1000))
@ -122,6 +122,7 @@ nippy/stress-data
:time-duration (java.time.Duration/ofSeconds 100 100) :time-duration (java.time.Duration/ofSeconds 100 100)
:time-period (java.time.Period/of 1 1 1) :time-period (java.time.Period/of 1 1 1)
:bytes (byte-array [(byte 1) (byte 2) (byte 3)])
:objects (object-array [1 "two" {:data "data"}]) :objects (object-array [1 "two" {:data "data"}])
:stress-record (StressRecord. "data") :stress-record (StressRecord. "data")

View file

@ -2018,11 +2018,11 @@
Object (equals [a b] (= (.-data a) (.-data ^StressType b)))) Object (equals [a b] (= (.-data a) (.-data ^StressType b))))
(def stress-data "Reference data used for tests & benchmarks" (def stress-data "Reference data used for tests & benchmarks"
{:bytes (byte-array [(byte 1) (byte 2) (byte 3)]) {:nil nil
:nil nil
:true true :true true
:false false :false false
:False (Boolean. false) :boxed-false (Boolean. false)
:char \ಬ :char \ಬ
:str-short "ಬಾ ಇಲ್ಲಿ ಸಂಭವಿಸ" :str-short "ಬಾ ಇಲ್ಲಿ ಸಂಭವಿಸ"
:str-long (apply str (range 1000)) :str-long (apply str (range 1000))
@ -2089,6 +2089,7 @@
:time-duration (enc/compile-if java.time.Duration (java.time.Duration/ofSeconds 100 100) nil) :time-duration (enc/compile-if java.time.Duration (java.time.Duration/ofSeconds 100 100) nil)
:time-period (enc/compile-if java.time.Period (java.time.Period/of 1 1 1) nil) :time-period (enc/compile-if java.time.Period (java.time.Period/of 1 1 1) nil)
:bytes (byte-array [(byte 1) (byte 2) (byte 3)])
:objects (object-array [1 "two" {:data "data"}]) :objects (object-array [1 "two" {:data "data"}])
:stress-record (StressRecord. "data") :stress-record (StressRecord. "data")