github.com/trim21/go-phpserialize@v0.0.22-0.20240301204449-2fca0319b3f0/docs/benchmark.md (about)

     1  # benchmark
     2  
     3  you can see full result at [benchmark.txt](./benchmark.txt)
     4  
     5  compare with https://github.com/elliotchance/phpserialize (will have to use map to marshal php array)
     6  
     7  ```text
     8  goos: windows
     9  goarch: amd64
    10  pkg: bench
    11  cpu: AMD Ryzen 7 5800X 8-Core Processor
    12  Benchmark_marshal_compare-16                             4007931               298.1 ns/op           208 B/op          2 allocs/op
    13  Benchmark_elliotchance_phpserialize_marshal-16            226204              5227 ns/op            3450 B/op        101 allocs/op
    14  PASS
    15  ok      bench   2.886s
    16  ```
    17  
    18  you can find source at [bench_test.go](../bench/bench_test.go)