feat update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "sled/strings/base64.h"
|
||||
#include <fmt/format.h>
|
||||
#include <sled/strings/base64.h>
|
||||
#include <sstream>
|
||||
|
||||
namespace sled {
|
||||
|
12
src/strings/base64_bench.cc
Normal file
12
src/strings/base64_bench.cc
Normal 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);
|
Reference in New Issue
Block a user