Skip to content

Instantly share code, notes, and snippets.

View SphericalKat's full-sized avatar
🍝
Regretting the spaghetti I'm writing

Amogh Lele SphericalKat

🍝
Regretting the spaghetti I'm writing
View GitHub Profile

Benchmark results

VM configuration: 2vcpu, 2GB ram, 10GBps shared link, hosted in Germany

All participants in the room were from India, from my local machine.

Summary

  1. Bandwidth consumption looks good, didn't even come close to saturating the link
  2. CPU consumption spikes to 80-90% and remains stable. It won't go higher unless more videos are turned on.
  3. Packet loss seems very low overall, and no errors occurred. This seems like a stable configuration for a medium size meeting room.
extends CharacterBody2D
@onready var coyote_timer = $Timer
const SPEED = 130.0
const JUMP_VELOCITY = -300.0
var can_jump = true
# Get the gravity from the project settings to be synced with RigidBody nodes.
const apiEndpoint = "https://api.spotify.com/v1";
const authEndpoint = "https://accounts.spotify.com/api/token";
const clientId = "your client id";
const clientSecret = "your client secret";
const method = "album";
const queryParams = `?q=${encodeURIComponent(
"Pink Floyd - The wall" // query here
)}&type=${method}&limit=1`;
const searchUrl = `${apiEndpoint}/search${queryParams}`;
name: Deploy site to Cloudflare Workers
on: [push]
jobs:
deploy-main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
import { getAssetFromKV, mapRequestToAsset } from '@cloudflare/kv-asset-handler'
/**
* The DEBUG flag will do two things that help during development:
* 1. we will skip caching on the edge, which makes it easier to
* debug.
* 2. we will return an error message on exception in your Response rather
* than the default 404.html page.
*/
const DEBUG = false
import { getAssetFromKV, mapRequestToAsset } from '@cloudflare/kv-asset-handler'
/**
* The DEBUG flag will do two things that help during development:
* 1. we will skip caching on the edge, which makes it easier to
* debug.
* 2. we will return an error message on exception in your Response rather
* than the default 404.html page.
*/
const DEBUG = false
addEventListener('fetch', event => {
event.respondWith(new Response('Hello World!'))
})
# ======================================================================
# There are 5 questions in this exam with increasing difficulty from 1-5.
# Please note that the weight of the grade for the question is relative
# to its difficulty. So your Category 1 question will score significantly
# less than your Category 5 question.
#
# Don't use lambda layers in your model.
# You do not need them to solve the question.
# Lambda layers are not supported by the grading infrastructure.
#
# ======================================================================
# There are 5 questions in this exam with increasing difficulty from 1-5.
# Please note that the weight of the grade for the question is relative
# to its difficulty. So your Category 1 question will score significantly
# less than your Category 5 question.
#
# Don't use lambda layers in your model.
# You do not need them to solve the question.
# Lambda layers are not supported by the grading infrastructure.
#
# ======================================================================
# There are 5 questions in this exam with increasing difficulty from 1-5.
# Please note that the weight of the grade for the question is relative
# to its difficulty. So your Category 1 question will score significantly
# less than your Category 5 question.
#
# Don't use lambda layers in your model.
# You do not need them to solve the question.
# Lambda layers are not supported by the grading infrastructure.
#