github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/rootio/encoding/README.md (about)

     1  Results:
     2  
     3  ```
     4  goos: windows
     5  goarch: amd64
     6  pkg: github.com/egonelbre/exp/rootio/encoding
     7  
     8  // Naming
     9  //   B / L = big endian / little endian
    10  //   A / S = (at, data) / (data[at:])
    11  //   F / R = forward vs reverse
    12  //   U = no bounds checks
    13  
    14  binary.BigEndian-8              2000000               654 ns/op
    15  BAR-8                           1000000              1303 ns/op
    16  BAF-8                           1000000              1297 ns/op
    17  LAF-8                           1000000              1298 ns/op
    18  LAR-8                           1000000              1302 ns/op
    19  NAD-8                           2000000               652 ns/op
    20  NADU-8                          5000000               340 ns/op
    21  BSR-8                           2000000               654 ns/op
    22  BSF-8                           1000000              1618 ns/op
    23  binary.LittleEndian-8           2000000               664 ns/op
    24  LSF-8                           1000000              1633 ns/op
    25  LSR-8                           2000000               653 ns/op
    26  NSD-8                           1000000              1337 ns/op
    27  NSDU-8                          1000000              1334 ns/op
    28  ```