]>
git.proxmox.com Git - ceph.git/blob - ceph/src/test/librados/op_speed.cc
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*
2 // vim: ts=8 sw=2 smarttab
4 #include "include/rados/librados.hpp"
6 constexpr int to_create
= 10'000'000;
9 for (int i
= 0; i
< to_create
; ++i
) {
10 librados::ObjectReadOperation op
;
14 std::map
<std::string
, ceph::buffer::list
> xattrs
;
15 std::map
<std::string
, ceph::buffer::list
> omap
;
17 op
.read(0, 0, &bl
, nullptr);
18 op
.stat2(&sz
, &tm
, nullptr);
19 op
.getxattrs(&xattrs
, nullptr);
20 op
.omap_get_vals2({}, 1000, &omap
, &more
, nullptr);