Skip to content

Instantly share code, notes, and snippets.

Avatar

Jamie JJJollyjim

View GitHub Profile
@JJJollyjim
JJJollyjim / index.js
Created Sep 15, 2013
Cluster & Toobusy - an awesomely scalable node setup
View index.js
// Include libraries
var express = require('express');
var cluster = require('cluster');
var toobusy = require('toobusy');
if (cluster.isMaster) {
var cpus = require("os").cpus();
console.log("CPU Info:");
console.log(cpus);
We couldn’t find that file to show.
View gist:9316333
chrome.storage.local.get "files", (vals) ->
# alert "Got stuff"
files = vals.files
fileTypes = ["tiles", "splats", "flair", "speedpad", "speedpadred", "speedpadblue", "portal"]
for type in fileTypes
if type of files
document.getElementById(type).src = files[type]
View main.py
#!/usr/bin/env python3
import library
print(library.my_string)
View library.py
my_string = "Hello, World"
View keybase.md

Keybase proof

I hereby claim:

  • I am jjjollyjim on github.
  • I am jjjollyjim (https://keybase.io/jjjollyjim) on keybase.
  • I have a public key ASCqwZGxkDN6LxINWh4g69_9opI1zT2yxe4C7d_769AqBAo

To claim this, I am signing this object:

View rio_benchmark.md

Benchmark

dd

~/M/rio ❯❯❯ command time dd if=/dev/zero bs=1M count=4096 of=file
0.00user 5.15system 0:12.81elapsed 40%CPU (0avgtext+0avgdata 2980maxresident)k
80inputs+8388608outputs (1major+340minor)pagefaults 0swaps

rio

View gist:4001439bf1918e3ace05f5320ec5fea7
```
~/M/rio ❯❯❯ target/release/examples/o_direct ✘ 130
[examples/o_direct.rs:57] post_submit - pre = 33.978026152s
[examples/o_direct.rs:57] post_complete - post_submit = 2.136211581s
rio profile:
op | min (us) | med (us) | 90 (us) | 99 (us) | 99.9 (us) | 99.99 (us) | max (us) | count | sum (s)
--------------------------------------------------------------------------------------------------------------------------------------
sq:
sq_mu_hold | 0.2 | 3.0 | 4.0 | 4.9 | 615.4 | 864.6 | 946.0 | 10243 | 0.046
sq_mu_wait | 0.1 | 0.8 | 1.1 | 1.4 | 2.0 | 21.4 | 24.3 | 10243 | 0.007
View 5g.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.