Skip to content

Instantly share code, notes, and snippets.

Answer to comments on uBlock Origin thread: https://github.com/gorhill/uBlock/commit/5733439f629da948cfc3cae74afa519f6cff7b7f as it seems I do not have permission to comment.

Hi,

First of all I'd like to personnaly thank you for all the work you do on uBlock Origin and other extensions, the source code of which have been an inspiration to me personally many times in the past.

I am also really excited that there are multiple people pushing for more accurate measurements of the efficiency of content-blockers and I think sharing methodologies, data and results is a great start!

It is interesting that the results you obtained diverge from the study published yesterday. If I understand correctly you got similar timings for uBlock Origin itself, but the numbers for Adblock Plus do not seem to match (45µs instead of ~19µs). I'd really like to understand where this difference could come from.

Keybase proof

I hereby claim:

  • I am remusao on github.
  • I am pythux (https://keybase.io/pythux) on keybase.
  • I have a public key ASBIsorWpEZnsDdJ4dp5ZqqkGfBbg04PmXAkcF6gN035Xwo

To claim this, I am signing this object:

@remusao
remusao / http_server.hs
Last active May 25, 2017 12:45
A small HTTP server used to test client/backend communication
#! /usr/bin/env stack
{- stack
--resolver lts-8.15
--install-ghc runghc
--package servant
--package text
--package optparse-generic
-}
{-# LANGUAGE DataKinds #-}
@remusao
remusao / gist:213cabad5ecd00da8e82
Last active August 29, 2015 14:01
Wordcount in Haskell
module Main where
import Data.List
import qualified Data.Text.Lazy.IO as TIO
import qualified Data.Text.Lazy as T
import qualified Data.Map.Strict as M
import System.Environment
import Control.Monad
type Str = T.Text
@remusao
remusao / BenchDictArray.jl
Last active August 29, 2015 13:56
Bench between Array and Dict in Julia
function findarg(args::Vector{(Symbol, ASCIIString)}, key::Symbol, default)
for (s, v) in args
is(key, s) && return v
end
return default
end
@remusao
remusao / c.jl
Last active December 26, 2015 16:19
Julia examples
##################
# Calling C code #
##################
# Simple function that wrap a call to libc clock function
clock() = ccall( (:clock, "libc"), Int32, ())
t = clock()
# Do some stuff
@remusao
remusao / gist:5681523
Created May 30, 2013 21:47
C++ functional composition
#ifndef PIPELINE_HH_
# define PIPELINE_HH_
namespace
{
//
// Extends the behavior of std::result_of for pipelines of function,
// setting field type to the type returned by the last function of
// the pipeline.
//