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
# Colors (Gruvbox Material Dark Medium) | |
colors: | |
primary: | |
background: '0x282828' | |
foreground: '0xdfbf8e' | |
normal: | |
black: '0x665c54' | |
red: '0xea6962' | |
green: '0xa9b665' |
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
// In this test, I benchmark 3 different ways to initialize AWS clients in Rust, using the Rusoto crates | |
// I wanted to know what was more efficient : | |
// - Create a new client for every call (Boxed or not) | |
// - Initialize once using the lazy_static macro and a mutex | |
// - Initialize one using the thread_local macro | |
#![feature(test)] | |
extern crate test; | |
extern crate rusoto_core; | |
extern crate rusoto_sns; |