UPDATE: apparently kernel difference may have a serious impact, so I'll redo the test from scratch.
Test performed with AOF enabled, fsync policy 1 second, allowing the rewrites to be triggered.
Command lines used:
| esphome: | |
| name: air-quality | |
| comment: "${device_description}" | |
| friendly_name: Air Quality | |
| substitutions: | |
| device_description: "Air Quality Sensor (ENS160+AHT20)" | |
| device_name: "air-quality" | |
| ens160_update_interval: "100s" | |
| aht20_update_interval: "60s" |
| exports.handler = (event, context, callback) => { | |
| // Get the request object. | |
| const request = event.Records[0].cf.request; | |
| // Get the host from the request and take out "www." from the host if it exists. | |
| let host = request.headers.host[0].value; | |
| host = host.replace(/^www\./, ""); | |
| // Check if the host contains a subdomain. |
| ~/Development/go/src/github.com/nats-io/nats/examples> ./nats-bench -np 16 -n 100000 foo ok | |
| Starting benchmark | |
| msgs=16X100000, pubs=16, subs=0 | |
| ################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################# |
| // junkterm is a quick and dirty serial terminal. | |
| package main | |
| import ( | |
| "io" | |
| "log" | |
| "os" | |
| "github.com/pkg/term" | |
| "github.com/spf13/cobra" |