Update bench.cpp

pull/1688/head
Tk-Rwing 5 years ago committed by GitHub
parent 5557192981
commit 7bb71c09fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,11 +14,9 @@
#include "spdlog/fmt/bundled/locale.h" #include "spdlog/fmt/bundled/locale.h"
#include "utils.h" #include "utils.h"
#include <atomic> //#include <cstdlib> // EXIT_FAILURE
#include <cstdlib> // EXIT_FAILURE
#include <memory> #include<bits/stdc++.h>
#include <string>
#include <thread>
void bench(int howmany, std::shared_ptr<spdlog::logger> log); void bench(int howmany, std::shared_ptr<spdlog::logger> log);
void bench_mt(int howmany, std::shared_ptr<spdlog::logger> log, size_t thread_count); void bench_mt(int howmany, std::shared_ptr<spdlog::logger> log, size_t thread_count);
@ -238,4 +236,4 @@ void bench_c_string(int howmany, std::shared_ptr<spdlog::logger> log)
spdlog::info("{:<30} Elapsed: {:0.2f} secs {:>16}/sec", log->name(), delta_d, int(howmany / delta_d)); spdlog::info("{:<30} Elapsed: {:0.2f} secs {:>16}/sec", log->name(), delta_d, int(howmany / delta_d));
} }
*/ */

Loading…
Cancel
Save