Skip to content

Instantly share code, notes, and snippets.

$ openssl speed rsa2048 rsa3072 rsa4096 ecdsap256 ecdsap384
Doing 2048 bits private rsa sign ops for 10s: 10842 2048 bits private RSA sign ops in 9.98s
Doing 2048 bits public rsa verify ops for 10s: 433164 2048 bits public RSA verify ops in 9.97s
Doing 2048 bits private rsa encrypt ops for 10s: 418370 2048 bits public RSA encrypt ops in 9.98s
Doing 2048 bits private rsa decrypt ops for 10s: 10720 2048 bits private RSA decrypt ops in 9.96s
Doing 3072 bits private rsa sign ops for 10s: 3742 3072 bits private RSA sign ops in 9.98s
Doing 3072 bits public rsa verify ops for 10s: 202568 3072 bits public RSA verify ops in 9.97s
Doing 3072 bits private rsa encrypt ops for 10s: 195322 3072 bits public RSA encrypt ops in 9.90s
Doing 3072 bits private rsa decrypt ops for 10s: 3707 3072 bits private RSA decrypt ops in 9.93s
@ruslandoga
ruslandoga / 🪦
Last active August 20, 2024 16:23
We couldn’t find that file to show.
@ruslandoga
ruslandoga / 😌
Last active August 20, 2024 16:23
We couldn’t find that file to show.
We couldn’t find that file to show.

This gist uses UK Property Price Paid example dataset.

mac3.local :) select count(*) from uk_price_paid

┌──count()─┐
│ 27359802 │
└──────────┘

mac3.local :) select formatReadableSize(total_bytes) from system.tables where name = 'uk_price_paid'
@ruslandoga
ruslandoga / error_loop.exs
Last active July 27, 2022 08:26
A particular sentry + finch setup that results in sentry entering a possibly infinite error loop with some possible workarounds.
Mix.install([:sentry, :finch, :jason])
defmodule Sentry.FinchClient do
@moduledoc false
# adapts https://github.com/getsentry/sentry-elixir/blob/master/lib/sentry/hackney_client.ex
@behaviour Sentry.HTTPClient
@finch_name S.Finch
@impl true
@ruslandoga
ruslandoga / 😵
Last active November 14, 2024 18:19
We couldn’t find that file to show.