Skip to content

Instantly share code, notes, and snippets.

View lightsofapollo's full-sized avatar

James Lal lightsofapollo

View GitHub Profile
emulator-kk : normal 24m50.444s
emulator-kk : with --no-tags -c --no-clone-bundle 19m39.153s
emulator-kk-in-tree-config: 19m27.275s
[paths]
default = http://hg.mozilla.org/integration/b2g-inbound/
default-push = ssh://hg.mozilla.org/integration/b2g-inbound/
try = ssh://hg.mozilla.org/try
review = ssh://reviewboard-hg.mozilla.org/gecko
central = https://hg.mozilla.org/mozilla-central
alder = https://hg.mozilla.org/projects/alder/
alder-push = ssh://hg.mozilla.org/projects/alder/
{
"name": "gaia",
"private": true,
"version": "0.0.2",
"description": "A bundle of components which Gaia needs.",
"author": "The Gaia Team <[email protected]>",
"devDependencies": {
"async": "0.2.9",
"adm-zip": "0.4.3",
"chai": "1.9.1",
{
"name": "fixtures",
"version": "0.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"debug": "*"
$inherit:
task: 'emulator.yml'
task:
payload:
env:
B2G_CONFIG: 'emulator-ics'
B2G_DEBUG: 1
$schema:
type: object
properties:
total_chunks:
chunk:
tests_url:
build_url:
required:
- total_chunks
- chunk
@lightsofapollo
lightsofapollo / inherit-merge.yml
Last active August 29, 2015 14:10
Inheritance designs
$inherit:
task: 'tasks/builds/xfoo'
# Merge _only_ so env will not override previous envs but do a deep merge.
task:
payload:
env:
MOZCONFIG: '....'
@lightsofapollo
lightsofapollo / adb-forward
Created November 18, 2014 01:22
adb-forward throughput
==========================BENCHMARK==========================
URL: http://localhost:60023/bar
Used Connections: 100
Used Threads: 2
Total number of calls: 1000
===========================TIMINGS===========================
Total time passed: 10.50s
Avg time per request: 882.58ms
@lightsofapollo
lightsofapollo / adb-forward
Created November 18, 2014 01:08
ADB vs Localhost
==========================BENCHMARK==========================
URL: http://localhost:60023/bar
Used Connections: 100
Used Threads: 2
Total number of calls: 1000
===========================TIMINGS===========================
Total time passed: 1.92s
Avg time per request: 164.84ms
import socket
import sys
import os
import json
ADDRESS = './socket.unix'
# Make sure the socket does not already exist
try:
os.unlink(ADDRESS)