Skip to content

Instantly share code, notes, and snippets.

View andy-wm-arthur's full-sized avatar

AndyA andy-wm-arthur

View GitHub Profile
@andy-wm-arthur
andy-wm-arthur / history.go
Created May 18, 2022 20:33
Generates a deep history against a dolt database
package main
import (
"context"
"database/sql"
"fmt"
"math/rand"
"os"
_ "github.com/go-sql-driver/mysql"
@andy-wm-arthur
andy-wm-arthur / bench.sh
Created June 1, 2022 22:59
Dolt Diff vs. Sqlite Diff Benchmark
#!/bin/bash
SCALE=100000
if [ ! -z "$1" ]; then
SCALE="$1"
fi
# generate source data
cat << DOC > psv_gen.py