-
Run
sh gen-test-certs.sh
to generate the TLS certificates. -
Tweak
docker-compose.yml
as needed (e.g. to disable TLS comment out theREDIS_TLS*
env vars), and rundocker-compose up
.
This file contains hidden or 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
# Nix derivation to enter a shell with dependencies needed to build Python with pyenv. | |
# Start a shell with: | |
# $ nix-shell --run zsh ./pyenv-shell.nix | |
# Then install a Python version as usual. E.g.: | |
# $ pyenv install 3.12.5 | |
with import <nixpkgs> {}; | |
stdenv.mkDerivation { | |
name = "pybuild"; | |
buildInputs = [ |
Benchmark results for grafana/k6#3112 comparing the run of
a simple script on master
(97d40e939
) and feat/2432-events
(d5897faac
),
with and without importing a JS module that uses events.
Commands ran:
$ go test -bench='^BenchmarkRun$' -run='^$' -benchtime=100x -count=10 -benchmem ./cmd/tests \
| tee "bench_run_$(git rev-parse --short HEAD).txt"
This file contains hidden or 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
/\ |‾‾| /‾‾/ /‾‾/ | |
/\ / \ | |/ / / / | |
/ \/ \ | ( / ‾‾\ | |
/ \ | |\ \ | (‾) | | |
/ __________ \ |__| \__\ \_____/ .io | |
execution: local | |
script: /home/ivan/.local/tmp/test-http-server/ned-test-2879/test.js | |
output: - |
This file contains hidden or 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
import { sleep } from 'k6'; | |
import launcher from 'k6/x/browser'; | |
export default function() { | |
const browser = launcher.launch('chromium', { | |
headless: true, | |
timeout: '600s', | |
slowMo: '500ms', | |
}); | |
const context = browser.newContext(); |
This file contains hidden or 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
/* | |
* FormData polyfill for k6 | |
* (c) 2014 Rob Wu <[email protected]> | |
* License: MIT | |
* | |
* This simplifies the creation of multipart/form-data requests from k6 scripts. | |
* It was adapted from the original version by Rob Wu to remove references of | |
* XMLHttpRequest and File related code which isn't supported in k6. | |
**/ | |
(function(exports) { |
This file contains hidden or 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 ( | |
"context" | |
"fmt" | |
"log" | |
"net" | |
"os" | |
"time" |
I hereby claim:
- I am imiric on github.
- I am imiric (https://keybase.io/imiric) on keybase.
- I have a public key ASD11K4D060gWrXzD5Pcz3FdTmJL1ebtVfsOmIlEUtOK8go
To claim this, I am signing this object:
This file contains hidden or 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
#!/bin/bash | |
# This replicates xclip functionality used by pass in Cygwin/MSYS2 | |
# Original author: https://tylor.io/2015/07/13/password-manager/ | |
while [[ $# > 0 ]] | |
do | |
key="$1" | |
case $key in | |
-o|-out) |
This file contains hidden or 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
# -*- sh -*- | |
# | |
# Original plugin: https://gist.github.com/vvicaretti/cb4b2e27dadaf458eb3bc4ac215cf5fd | |
# Changes: | |
# - Made lookup case-insensitive | |
# | |
# [Pass](https://www.passwordstore.org/) | |
# the standard unix password manager | |
# [zaw](https://github.com/zsh-users/zaw) | |
# zsh anything.el-like widget |
NewerOlder