feat update

This commit is contained in:
tqcq
2024-03-10 22:26:33 +08:00
parent ab35717dc4
commit d85287d60a
5 changed files with 121 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
#include "sled/strings/base64.h"
#include <fmt/format.h>
#include <sled/strings/base64.h>
#include <sstream>
namespace sled {

View File

@@ -0,0 +1,12 @@
#include <benchmark/benchmark.h>
#include <sled/random.h>
#include <sled/strings/base64.h>
static void
Base64Encode(benchmark::State &state)
{
std::string input = "hello world\n";
for (auto _ : state) { (void) sled::Base64::Encode(input); }
}
BENCHMARK(Base64Encode)->RangeMultiplier(10)->Range(10, 1000000);