Skip to content

Instantly share code, notes, and snippets.

URL comparison benchmark

url-comparison-benchmark.js benchmarks one reference URL and then a list of target URLs sequentially.

It:

  • runs the same kind of measurements as url-timing-benchmark.js
  • keeps the per-target results aligned with the input order
  • compares each target against TARGET_ORIGIN
  • writes a uniquely named JSON result file by default
@g-lsh
g-lsh / alerting_api_v1.json
Created March 3, 2020 09:09
Alerting payload
{
"count": 1,
"previous": "None",
"next": "None",
"results": [
{
"date_created": "2020-03-01 10:00:00",
"version": 0.1,
"alerts": [
{
@g-lsh
g-lsh / instances.rb
Created December 5, 2016 23:22
instance variables
class Person
attr_accessor :name
def initialize(name)
@name = name
end
end