2.15.0
vs 2.14.2
Static Web Server A generic Static Web Server load testing comparison between
2.15.0
and2.14.2
versions.
$ static-web-server -d ./public
2.15.0
vs 2.14.2
A generic Static Web Server load testing comparison between
2.15.0
and2.14.2
versions.
$ static-web-server -d ./public
auto eth0 | |
iface lo inet loopback | |
iface eth0 inet dhcp |
-- example reporting script which demonstrates a custom | |
-- done() function that prints results as JSON | |
done = function(summary, latency, requests) | |
io.write("\nJSON Output:\n") | |
io.write("{\n") | |
io.write(string.format("\t\"requests\": %d,\n", summary.requests)) | |
io.write(string.format("\t\"duration_in_microseconds\": %0.2f,\n", summary.duration)) | |
io.write(string.format("\t\"bytes\": %d,\n", summary.bytes)) | |
io.write(string.format("\t\"requests_per_sec\": %0.2f,\n", (summary.requests/summary.duration)*1e6)) |
/usr/bin/code -g %f:%l:%c
{ | |
// ---- Editor ---- | |
"editor.fontFamily": "Fira Code", | |
"editor.fontSize": 12, | |
"editor.fontLigatures": true, | |
"editor.detectIndentation": true, | |
"editor.wordWrap": "on", | |
"editor.formatOnSave": false, | |
"editor.rulers": [ | |
132 |
I hereby claim:
To claim this, I am signing this object:
/** | |
* Return an environment variable typed value from `process.env`. | |
* It also supports a default value in case of `undefined`. | |
* | |
* The function will follow these steps to take a typed value: | |
* 1. First it will try to get the env value from `process.env`. | |
* 2. Then if `undefined` then it try with the default environment variable value if defined. | |
* 3. Otherwise if the default value is `undefined` then it will return the Javascript default values: | |
* - Boolean: `false` | |
* - String: `""` |
# Match on all types of devices but joysticks | |
# | |
# If you want to configure your devices, do not copy this file. | |
# Instead, use a config snippet that contains something like this: | |
# | |
# Section "InputClass" | |
# Identifier "something or other" | |
# MatchDriver "libinput" | |
# | |
# MatchIsTouchpad "on" |
enum Token { | |
Start, | |
Middle, | |
End, | |
} | |
/// Parses the Nginx-like `try_files` directive string and returns a vector of tokens. | |
pub fn parse(val: &str) -> Vec<String> { | |
let mut kind = Token::Start; | |
let mut token = String::new(); |