brew install mitmproxy
mitmproxy --mode upstream:https://host:port --upstream-auth=user:password
adb
is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
Requirement: We assume that have macOS or Linux. Windows is not supported.
Run the bash script script.sh
(e.g., type bash script.sh
). It will install nvm
and bun
in your user account, if needed.
The benchmark simply reads the current README.md file, as quickly as possible.
#!/bin/sh | |
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the | |
# CREATE block and create them in separate commands _after_ all the INSERTs. | |
# Awk is choosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk. | |
# The mysqldump file is traversed only once. | |
# Usage: $ ./mysql2sqlite mysqldump-opts db-name | sqlite3 database.sqlite | |
# Example: $ ./mysql2sqlite --no-data -u root -pMySecretPassWord myDbase | sqlite3 database.sqlite |
// make a request | |
const options = { | |
port: 1337, | |
host: 'localhost', | |
headers: { | |
'Connection': 'Upgrade', | |
'Upgrade': 'websocket' | |
} | |
}; | |
const protocol = 'http' |
These results are invalid. Some of the server implementations don't parse correctly and rust-tokio/ponylang-tcp don't seem to parse at all. See here for better benchmarks: https://gist.github.com/kprotty/5a41e9612657de00788478a7dde43d78
====
wrk -t4 -c128 -d10 --latency http://localhost:12345
// you need this in your cargo.toml | |
// reqwest = { version = "0.11.3", features = ["stream"] } | |
// futures-util = "0.3.14" | |
// indicatif = "0.15.0" | |
use std::cmp::min; | |
use std::fs::File; | |
use std::io::Write; | |
use reqwest::Client; | |
use indicatif::{ProgressBar, ProgressStyle}; |