| 106 | |
| 107 | template <typename T> |
| 108 | static inline void BenchEncodeUrl(T& d, const NBench::NCpu::TParams& iface) { |
| 109 | for (const auto it : xrange(iface.Iterations())) { |
| 110 | Y_UNUSED(it); |
| 111 | for (size_t i = 0; i < d.Size; ++i) { |
| 112 | NBench::Escape(d.PlaceToEncode[i].data()); |
| 113 | Y_DO_NOT_OPTIMIZE_AWAY( |
| 114 | Base64EncodeUrl(d.PlaceToEncode[i].data(), (const unsigned char*)d.Data[i].data(), d.Data[i].size())); |
| 115 | NBench::Clobber(); |
| 116 | } |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | template <typename T> |
| 121 | static inline void BenchDecode(T& d, const NBench::NCpu::TParams& iface) { |
no test coverage detected