Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/home/ngocdaothanh/opt/tsung-ws-plugin/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" version="1.0">
<clients>
<!-- Can't be IP -->
<client host="localhost" cpu="8"/>
<client host="t2" cpu="8"/>
<!--
<client host="t3" cpu="8"/>
<client host="t4" cpu="8"/>
@ngocdaothanh
ngocdaothanh / gist:3293596
Created August 8, 2012 08:53
Static file serving benchmark: Nginx 1.2.3 VS Xitrum 1.9.2
Condition
=========
Machine spec
------------
Machine 1 and Machine 2: same spec
Red Hat Enterprise Linux 6.3 64 bit
EC2 High-Memory Double Extra Large
@ngocdaothanh
ngocdaothanh / Benchmark.scala
Created December 17, 2011 14:00
ByteBuffer.allocateDirect vs Unsafe
object Benchmark {
private val LOOP_COUNT = 1000000
private val ARRAY_SIZE = 1024
def main(args: Array[String]) {
val t1 = System.currentTimeMillis
var i = 0
while (i < LOOP_COUNT) {
testDirectByteBuffer
@ngocdaothanh
ngocdaothanh / gist:1133070
Created August 8, 2011 23:49
Bank of America Merrill Lynch Tokyo
Job Title Front Office Developer
Department ELT (Equity Linked Tech)
Team Role Team member
Size of Team 6
Role Type (Perm, Temp, Contract) Perm
Location Tokyo
Reason for Vacancy Replacement
Main Responsibilities:
Công ty: AIMNEXT
Lương: 4-6 triệu yen
Công việc: tư vấn giải pháp liên quan đến công nghệ C#, C++, Java
Yêu cầu:
* Làm ở Nhật ít nhất khoảng 1, 2 năm; sau đó có thể làm ở chi nhánh VN
* Độ tuổi: trên dưới 30
* Kinh nghiệm: C#, C++, Java 2, 3 năm trở lên, có kinh nghiệm business hoặc tư vấn càng tốt
* Tiếng Nhật: 1 kyu trở lên
@ngocdaothanh
ngocdaothanh / Build.scala
Created June 15, 2011 01:37
dependsOn packageBin
import sbt._
import Keys._
object MyBuild extends Build {
val mySettings = Defaults.defaultSettings ++ Seq(
organization := "tv.cntt",
name := "comy",
version := "1.3-SNAPSHOT",
scalaVersion := "2.9.0-1"
)