text
stringlengths 0
2.2M
|
---|
folly::doNotOptimizeAway(s.find(lookup));
|
}
|
BENCHMARK_RELATIVE(std_set_benchmark_find_cross) {
|
folly::doNotOptimizeAway(s.find(lookupPiece.str()));
|
}
|
BENCHMARK_RELATIVE(std_set_benchmark_find_equiv) {
|
folly::doNotOptimizeAway(s_equiv.find(lookupPiece));
|
}
|
BENCHMARK_RELATIVE(sk_set_benchmark_find_native) {
|
folly::doNotOptimizeAway(sks.find(lookupPiece));
|
}
|
BENCHMARK_RELATIVE(sk_set_benchmark_find_cross) {
|
folly::doNotOptimizeAway(sks.find(lookup));
|
}
|
BENCHMARK(std_set_benchmark_erase_emplace_native) {
|
s.erase(lookup);
|
s.emplace(lookup);
|
}
|
BENCHMARK_RELATIVE(std_set_benchmark_erase_emplace_cross) {
|
s.erase(lookupPiece.str());
|
s.emplace(lookupPiece.str());
|
}
|
BENCHMARK_RELATIVE(sk_set_benchmark_erase_emplace_native) {
|
sks.erase(lookupPiece);
|
sks.emplace(lookupPiece);
|
}
|
BENCHMARK_RELATIVE(sk_set_benchmark_erase_emplace_cross) {
|
sks.erase(lookup);
|
sks.emplace(lookup);
|
}
|
BENCHMARK(std_unordered_set_benchmark_find_native) {
|
folly::doNotOptimizeAway(us.find(lookup));
|
}
|
BENCHMARK(std_unordered_set_benchmark_find_cross) {
|
folly::doNotOptimizeAway(us.find(lookupPiece.str()));
|
}
|
BENCHMARK_RELATIVE(sk_unordered_set_benchmark_find_native) {
|
folly::doNotOptimizeAway(skus.find(lookupPiece));
|
}
|
BENCHMARK_RELATIVE(sk_unordered_set_benchmark_find_cross) {
|
folly::doNotOptimizeAway(skus.find(lookup));
|
}
|
BENCHMARK(std_unordered_set_benchmark_erase_emplace_native) {
|
us.erase(lookup);
|
us.emplace(lookup);
|
}
|
BENCHMARK_RELATIVE(std_unordered_set_benchmark_erase_emplace_cross) {
|
us.erase(lookupPiece.str());
|
us.emplace(lookupPiece.str());
|
}
|
BENCHMARK_RELATIVE(sk_unordered_set_benchmark_erase_emplace_native) {
|
skus.erase(lookupPiece);
|
skus.emplace(lookupPiece);
|
}
|
BENCHMARK_RELATIVE(sk_unordered_set_benchmark_erase_emplace_cross) {
|
skus.erase(lookup);
|
skus.emplace(lookup);
|
}
|
int main(int argc, char** argv) {
|
gflags::ParseCommandLineFlags(&argc, &argv, true);
|
initBenchmarks();
|
folly::runBenchmarks();
|
}
|
// baltzo_loader.cpp -*-C++-*-
|
#include <baltzo_loader.h>
|
#include <baltzo_zoneinfo.h> // for testing only
|
#include <bsls_ident.h>
|
BSLS_IDENT_RCSID(baltzo_loader_cpp,"$Id$ $CSID$")
|
namespace BloombergLP {
|
namespace baltzo {
|
// ------------
|
// class Loader
|
// ------------
|
// CREATORS
|
Loader::~Loader()
|
{
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.