Skip to content

Instantly share code, notes, and snippets.

View fwbrasil's full-sized avatar

Flavio Brasil fwbrasil

  • Nubank
  • San Francisco Bay Area, California
View GitHub Profile
{"queryIntervals": [1, 5, 10, 15, 20], "frameworks": ["HttpListener", "HttpListener-mongodb-raw", "HttpListener-mysql-raw", "HttpListener-postgresql-raw", "HttpListener-sqlserver-raw", "aspnet", "aspnet-jsonnet", "aspnet-mongodb-raw", "aspnet-mono", "aspnet-mono-jsonnet", "aspnet-mono-mongodb-raw", "aspnet-mono-mysql-entityframework", "aspnet-mono-mysql-raw", "aspnet-mono-postgresql-entityframework", "aspnet-mono-postgresql-raw", "aspnet-mono-servicestack", "aspnet-mysql-entityframework", "aspnet-mysql-raw", "aspnet-postgresql-entityframework", "aspnet-postgresql-raw", "aspnet-servicestack", "aspnet-sqlserver-entityframework", "aspnet-sqlserver-raw", "aspnet-stripped", "aspnet-stripped-mongodb-raw", "aspnet-stripped-mysql-raw", "aspnet-stripped-postgresql-raw", "aspnet-stripped-sqlserver-raw", "beego", "bottle", "bottle-mysql-raw", "bottle-py3", "bottle-pypy", "cake", "codeigniter", "codeigniter-raw", "compojure", "compojure-raw", "cowboy", "cpoll_cppsp", "cpoll_cppsp-postgres-raw", "cpoll_cppsp-postgres-raw-
ubuntu@ip-10-164-52-91:~/FrameworkBenchmarks$ toolset/run-tests.py -u ubuntu --test play-activate-mysql -i ~/.ssh/id_rsa --max-threads 5 --max-concurrency 8
=====================================================
Preparing Server, Database, and Client ...
=====================================================
bash: cpu0/cpufreq/scaling_governor: No such file or directory
bash: cpu1/cpufreq/scaling_governor: No such file or directory
Welcome to Ubuntu 12.04.3 LTS (GNU/Linux 3.2.0-40-virtual x86_64)
{"queryIntervals": [1, 5, 10, 15, 20], "frameworks": ["HttpListener", "HttpListener-mongodb-raw", "HttpListener-mysql-raw", "HttpListener-postgresql-raw", "HttpListener-sqlserver-raw", "aspnet", "aspnet-jsonnet", "aspnet-mongodb-raw", "aspnet-mono", "aspnet-mono-jsonnet", "aspnet-mono-mongodb-raw", "aspnet-mono-mysql-entityframework", "aspnet-mono-mysql-raw", "aspnet-mono-postgresql-entityframework", "aspnet-mono-postgresql-raw", "aspnet-mono-servicestack", "aspnet-mysql-entityframework", "aspnet-mysql-raw", "aspnet-postgresql-entityframework", "aspnet-postgresql-raw", "aspnet-servicestack", "aspnet-sqlserver-entityframework", "aspnet-sqlserver-raw", "aspnet-stripped", "aspnet-stripped-mongodb-raw", "aspnet-stripped-mysql-raw", "aspnet-stripped-postgresql-raw", "aspnet-stripped-sqlserver-raw", "beego", "bottle", "bottle-mysql-raw", "bottle-py3", "bottle-pypy", "cake", "codeigniter", "codeigniter-raw", "compojure", "compojure-raw", "cowboy", "cpoll_cppsp", "cpoll_cppsp-postgres-raw", "cpoll_cppsp-postgres-raw-
ubuntu@ip-10-152-186-104:~/FrameworkBenchmarks$ toolset/run-tests.py -u ubuntu --test play-activate-mysql -i ~/.ssh/id_rsa --max-threads 5 --max-concurrency 16
=====================================================
Preparing Server, Database, and Client ...
=====================================================
bash: cpu0/cpufreq/scaling_governor: No such file or directory
Welcome to Ubuntu 12.04.2 LTS (GNU/Linux 3.2.0-40-virtual x86_64)
* Documentation: https://help.ubuntu.com/
ubuntu@ip-10-152-186-104:~/FrameworkBenchmarks$ toolset/run-tests.py -u ubuntu --test play-activate-mysql -i ~/.ssh/id_rsa.pub --max-threads 20
=====================================================
Preparing Server, Database, and Client ...
=====================================================
bash: cpu0/cpufreq/scaling_governor: No such file or directory
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@fwbrasil
fwbrasil / CrudTest.scala
Last active December 17, 2015 00:19 — forked from b0c1/CrudTest.scala
package hu.finesolution.sepia.test.core.controller
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
import org.scalatest.mock.MockitoSugar
import org.scalatest.{FunSuite, BeforeAndAfter}
import org.scalatra.test.scalatest.ScalatraSuite
import org.scalatra.ScalatraServlet
import net.fwbrasil.smirror._
trait Foo {
@deprecated("foo is a terrible name! what were you thinking?", "0.1")
def foo(i: Int) = i
}
class Bar extends Foo {
}
@fwbrasil
fwbrasil / gist:4743435
Last active December 12, 2015 08:19
SMirror - invoking a no-arg constructor
scala> import net.fwbrasil.smirror._
import net.fwbrasil.smirror._
scala> implicit val mirror = runtimeMirror(getClass.getClassLoader)
mirror: reflect.runtime.universe.Mirror = JavaMirror with scala.tools.nsc.interprete...
scala> case class Shop(store: String, item: String, cost: Int) {
| def this() = this(null, null, 0)
| }
defined class Shop
package net.fwbrasil.sReflection
object CascadeImplicits {
implicit def toYourself[T](value: T): Yourself[T] = new Yourself(value)
implicit def toCascade[T](value: T): Cascade[T] = new Cascade(value)
class Yourself[T](value: T) {
def yourself = value
}
@fwbrasil
fwbrasil / ActivateGraph.scala
Created November 22, 2012 17:06
Activate graph database support spike
package com.example.foo
import activateExampleContext._
class Person(
var name: String)
extends Vertex
class Knows(
val from: Person,