Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ryandotsmith/rubykaigi
- Owner: ryandotsmith
- Created: 2013-05-30T20:25:44.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-05-30T21:00:03.000Z (over 11 years ago)
- Last Synced: 2024-10-13T17:47:19.867Z (3 months ago)
- Language: Ruby
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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
```