Skip to content

Instantly share code, notes, and snippets.

View monken's full-sized avatar

Moritz Onken monken

View GitHub Profile
openssl speed rsa2048
Doing 2048 bits private rsa's for 10s: 16696 2048 bits private RSA's in 10.00s
Doing 2048 bits public rsa's for 10s: 536259 2048 bits public RSA's in 10.00s
OpenSSL 1.1.1c 28 May 2019
built on: Wed May 29 17:53:30 2019 UTC
options:bn(64,64) rc4(16x,int) des(int) aes(partial) idea(int) blowfish(ptr)
compiler: /tmp/build/80754af9/openssl_1559152327778/_build_env/bin/x86_64-conda_cos6-linux-gnu-cc -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -I/opt/anaconda -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -I/opt/anaconda/include -fdebug-prefix-map=/tmp/build/80754af9/openssl_1559152327778/work=/usr/local/src/conda/openssl-1.1.1c -fdebug-prefix-map=/opt/anaconda=/usr/local/src/conda-prefix -Wa,--noexecstack -fPIC -pthread -m64 -Wa,--noexecstack -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -I/opt/anaconda/include -fdebug-prefix-map=/tmp/build/80754af9/openssl_1559152
import * as crypto from 'crypto';
const key = crypto.generateKeyPairSync('rsa', {
modulusLength: 2048,
});
const input = crypto.randomBytes(128);
function run(iterations) {
for (let i = 0; i < iterations; i++) {
cat /etc/lsb-release
# DISTRIB_ID=Ubuntu
# DISTRIB_RELEASE=20.04
# DISTRIB_CODENAME=focal
# DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
uname -a
# Linux ubuntu 5.4.0-56-generic #62-Ubuntu SMP Mon Nov 23 19:17:58 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
qemu-system-aarch64 \
-accel hvf \
-m 2048 \
-M virt,highmem=off \
-cpu cortex-a72 \
-drive file=QEMU_EFI.img,if=pflash,format=raw,readonly \
-drive if=pflash,file=ubuntu-varstore.qcow2 \
-drive if=virtio,file=ubuntu.qcow2 \
-nic user,model=virtio,hostfwd=tcp::10022-:22 \
-cdrom ubuntu-20.04.1-live-server-arm64.iso \
x-default-request: &request
security: [ sigv4: [] ]
responses:
200:
description: "200 response"
schema:
$ref: "#/definitions/Empty"
x-amazon-apigateway-request-validator: all
x-amazon-apigateway-integration:
responses:
@monken
monken / table.yml
Last active February 23, 2019 00:25
lake-create-table
Resources:
CrossAccountAccessRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument:
Statement:
Action: sts:AssumeRole
Effect: Allow
Principal:
AWS: '123412341234' # data lake account id
@monken
monken / diff.js
Last active July 18, 2016 20:59
us-east-2
// Instructions for subscription to this diff at https://github.com/monken/lambda-ip-ranges-diff
{
"diff": [
{
"op": "replace",
"path": "/syncToken",
"value": "1468814166"
},
{
$ ab -c 20 -n 1000 http://api.metacpan.org/module/Moose
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking api.metacpan.org (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
guest:
auto lo
iface lo inet loopback
iface eth0 inet 6 static
address 2a01:4f8:160:3122::1:1
netmask 64
gateway 2a01:4f8:160:3122::3
{
"timestamp" : 1325180847,
"reply_to" : "amq.gen-lmwMrKBLLNFkjOrAzu651A==",
"url" : "https://metacpan.org/module/Moose",
"id" : "YW1xLmdlbi1sbXdNcktCTExORmtqT3JBenU2NTFBPT0"
}