This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstddef> | |
#include <utility> | |
#include <atomic> | |
#include <thread> | |
#include <iostream> | |
namespace aeron | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
O1 | |
263136 0000000000519690 <aeron::concurrent::AtomicArrayUpdater<long>::load() const>: | |
263137 519690: 55 push rbp | |
263138 519691: 48 89 e5 mov rbp,rsp | |
263139 519694: 41 57 push r15 | |
263140 519696: 41 56 push r14 | |
263141 519698: 53 push rbx | |
263142 519699: 50 push rax | |
263143 51969a: 4c 8d 4f 08 lea r9,[rdi+0x8] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
int main() { | |
int x = 23; | |
int y = 45; | |
auto l1 = [] () { | |
std::printf("l1\n"); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <chrono> | |
#include <boost/asio/io_context.hpp> | |
#include <boost/asio/spawn.hpp> | |
#include <boost/asio/steady_timer.hpp> | |
int main(int argc, char* argv[]) | |
{ | |
boost::asio::io_context io_context(BOOST_ASIO_CONCURRENCY_HINT_1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before | |
done | |
==17872==WARNING: ASan is ignoring requested __asan_handle_no_return: stack top: 0x7fff058e0000; bottom 0x631000022000; size: | |
0x1cef058be000 (31812915814400) | |
False positive error reports may follow | |
For details see https://github.com/google/sanitizers/issues/189 | |
excep handler | |
before | |
================ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <benchmark/benchmark.h> | |
#include <absl/container/flat_hash_map.h> | |
#define BENCH_SIZES ->Arg(1000)->Arg(1000000)->Arg(10000000) | |
template <typename Map> | |
void fill_map(Map& map, const std::uint64_t size) { | |
for (std::uint64_t i = 0 ; i < size; ++i) { | |
map.try_emplace(i, i*2); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./clients/memslap -s 127.0.0.1:11211/20000 -S 5s -T 4 -c 200 | |
twemcache direct | |
Get Statistics | |
Type Time(s) Ops TPS(ops/s) Net(M/s) Get_miss Min(us) Max(us) Avg(us) Std_dev Geo_dist | |
Period 5 637239 127447 132.2 143267 70 27985 1406 966.24 1239.16 | |
Global 5 637239 127447 132.2 143268 70 27985 1406 966.24 1239.16 | |
Set Statistics | |
Type Time(s) Ops TPS(ops/s) Net(M/s) Get_miss Min(us) Max(us) Avg(us) Std_dev Geo_dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"github.com/ant0ine/go-json-rest/rest" | |
"log" | |
"net/http" | |
) | |
func handle_auth(w rest.ResponseWriter, r *rest.Request) { | |
w.WriteJson(map[string]string{"authed": r.Env["REMOTE_USER"].(string)}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[inf@head foreman_version_control]$ hammer -v template info --id 1 | |
[ INFO 2014-03-03 13:36:08 Init] Initialization of Hammer CLI (0.0.18) has started... | |
[ INFO 2014-03-03 13:36:08 Init] Configuration from the file /etc/foreman/cli_config.yml has been loaded | |
[ INFO 2014-03-03 13:36:08 Modules] Extension module hammer_cli_foreman (0.0.18) loaded | |
[ INFO 2014-03-03 13:36:08 HammerCLI::MainCommand] Called with options: {"option_verbose"=>true} | |
[ INFO 2014-03-03 13:36:08 HammerCLIForeman::Template] Called with options: {} | |
[ INFO 2014-03-03 13:36:08 HammerCLIForeman::Template::InfoCommand] Called with options: {"option_id"=>"1"} | |
[DEBUG 2014-03-03 13:36:08 Connection] Registered: foreman_ConfigTemplate | |
[DEBUG 2014-03-03 13:36:08 ForemanApi::Resources::ConfigTemplate] Calling 'show' with params { | |
"id" => "1" |
NewerOlder