| 93 | |
| 94 | template <typename T> |
| 95 | static inline void BenchEncode(T& d, const NBench::NCpu::TParams& iface) { |
| 96 | for (const auto it : xrange(iface.Iterations())) { |
| 97 | Y_UNUSED(it); |
| 98 | for (size_t i = 0; i < d.Size; ++i) { |
| 99 | NBench::Escape(d.PlaceToEncode[i].data()); |
| 100 | Y_DO_NOT_OPTIMIZE_AWAY( |
| 101 | Base64Encode(d.PlaceToEncode[i].data(), (const unsigned char*)d.Data[i].data(), d.Data[i].size())); |
| 102 | NBench::Clobber(); |
| 103 | } |
| 104 | } |
| 105 | } |
| 106 | |
| 107 | template <typename T> |
| 108 | static inline void BenchEncodeUrl(T& d, const NBench::NCpu::TParams& iface) { |
no test coverage detected