github.com/cockroachdb/pebble@v1.1.1-0.20240513155919-3622ade60459/testdata/iterator_stats (about)

     1  build ext1
     2  merge a 1
     3  set c 2
     4  ----
     5  
     6  ingest ext1
     7  ----
     8  6:
     9    000004:[a#10,MERGE-c#10,SET]
    10  
    11  iter
    12  first
    13  next
    14  next
    15  stats
    16  ----
    17  a: (1, .)
    18  c: (2, .)
    19  .
    20  stats: (interface (dir, seek, step): (fwd, 1, 2), (rev, 0, 0)), (internal (dir, seek, step): (fwd, 1, 2), (rev, 0, 0)),
    21  (internal-stats: (block-bytes: (total 57B, cached 57B, read-time 0s)), (points: (count 2, key-bytes 2B, value-bytes 2B, tombstoned 0)))
    22  
    23  # Perform the same operation again with a new iterator. It should yield
    24  # identical statistics.
    25  
    26  iter
    27  first
    28  next
    29  next
    30  stats
    31  ----
    32  a: (1, .)
    33  c: (2, .)
    34  .
    35  stats: (interface (dir, seek, step): (fwd, 1, 2), (rev, 0, 0)), (internal (dir, seek, step): (fwd, 1, 2), (rev, 0, 0)),
    36  (internal-stats: (block-bytes: (total 57B, cached 57B, read-time 0s)), (points: (count 2, key-bytes 2B, value-bytes 2B, tombstoned 0)))
    37  
    38  build ext2
    39  set d@10 d10
    40  set d@9 d9
    41  set d@8 d8
    42  set e@20 e20
    43  set e@18 e18
    44  ----
    45  
    46  ingest ext2
    47  ----
    48  6:
    49    000004:[a#10,MERGE-c#10,SET]
    50    000005:[d@10#11,SET-e@18#11,SET]
    51  
    52  iter
    53  seek-ge c
    54  stats
    55  next
    56  next
    57  stats
    58  next
    59  stats
    60  next
    61  stats
    62  next
    63  stats
    64  ----
    65  c: (2, .)
    66  stats: (interface (dir, seek, step): (fwd, 1, 0), (rev, 0, 0)), (internal (dir, seek, step): (fwd, 1, 0), (rev, 0, 0)),
    67  (internal-stats: (block-bytes: (total 57B, cached 57B, read-time 0s)), (points: (count 1, key-bytes 1B, value-bytes 1B, tombstoned 0)))
    68  d@10: (d10, .)
    69  d@9: (d9, .)
    70  stats: (interface (dir, seek, step): (fwd, 1, 2), (rev, 0, 0)), (internal (dir, seek, step): (fwd, 1, 2), (rev, 0, 0)),
    71  (internal-stats: (block-bytes: (total 157B, cached 147B, read-time 0s)), (points: (count 3, key-bytes 8B, value-bytes 6B, tombstoned 0)), (separated: (count 1, bytes 2B, fetched 2B)))
    72  d@8: (d8, .)
    73  stats: (interface (dir, seek, step): (fwd, 1, 3), (rev, 0, 0)), (internal (dir, seek, step): (fwd, 1, 3), (rev, 0, 0)),
    74  (internal-stats: (block-bytes: (total 157B, cached 147B, read-time 0s)), (points: (count 4, key-bytes 11B, value-bytes 8B, tombstoned 0)), (separated: (count 2, bytes 4B, fetched 4B)))
    75  e@20: (e20, .)
    76  stats: (interface (dir, seek, step): (fwd, 1, 4), (rev, 0, 0)), (internal (dir, seek, step): (fwd, 1, 4), (rev, 0, 0)),
    77  (internal-stats: (block-bytes: (total 157B, cached 147B, read-time 0s)), (points: (count 5, key-bytes 15B, value-bytes 11B, tombstoned 0)), (separated: (count 2, bytes 4B, fetched 4B)))
    78  e@18: (e18, .)
    79  stats: (interface (dir, seek, step): (fwd, 1, 5), (rev, 0, 0)), (internal (dir, seek, step): (fwd, 1, 5), (rev, 0, 0)),
    80  (internal-stats: (block-bytes: (total 157B, cached 147B, read-time 0s)), (points: (count 6, key-bytes 19B, value-bytes 13B, tombstoned 0)), (separated: (count 3, bytes 7B, fetched 7B)))