Skip to content

Instantly share code, notes, and snippets.

View joshdurbin's full-sized avatar

Josh Durbin joshdurbin

View GitHub Profile
@joshdurbin
joshdurbin / redis_data_gen_replica_lag_check.go
Last active May 30, 2024 23:54
Redis content generator and concurrent poller of replicas
package main
import (
"context"
"flag"
"fmt"
"github.com/redis/go-redis/v9"
"golang.org/x/sync/errgroup"
"math/rand"
"net"
@joshdurbin
joshdurbin / generategcsdata.go
Last active March 13, 2024 15:52
Generate random files in GCS
package main
import (
"cloud.google.com/go/storage"
"context"
"fmt"
"math/rand"
"os"
"os/signal"
"sync"
@joshdurbin
joshdurbin / read_perf.txt
Last active April 11, 2025 17:33
non c-go sqlite per testing
➜ sqlitetest time ./main
=== SQLite Load Testing Program ===
Database path: ./people.db
=== DATABASE ALREADY CONTAINS 3230001 RECORDS ===
Proceeding with queries...
=== QUERY BY SSN TIMING ===
Running 1000 random SSN queries...
Queried 100/1000 SSNs (23728.07 queries/sec, 10.00% complete)