Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ryandotsmith/rubykaigi

Example code from rubykaigi talk
https://github.com/ryandotsmith/rubykaigi

Last synced: about 2 months ago
JSON representation

Example code from rubykaigi talk

Awesome Lists containing this project

README

        

#rubykaigi database benchmark

This is code used to demonstrate the performance impact of locking algorithms.

## Usage

With Locks:
```bash
$ export DATABASE_URL=postgres://localhost:5432/your-db
$ ruby seed.rb 10000
$ time ruby dequeue.rb lock.sql 10000 10
```

Without Locks:
```bash
$ export DATABASE_URL=postgres://localhost:5432/your-db
$ ruby seed.rb 10000
$ time ruby dequeue.rb lock-free.sql 10000 10
```