Skip to content

Instantly share code, notes, and snippets.

#include <memory>
using namespace std;
template <typename T, typename U>
ostream& operator<<(ostream& os, const pair<T, U> p) {
os << '(' << p.first << ',' << p.second << ')';
return os;
}
@taksatou
taksatou / result.md
Last active August 29, 2015 14:19
embench result

echo 100000回実行

lang msec
(control) 2.134
Lua 15.164
LuaJIT 12.531
Squirrel 22.273
V8 100.93
mruby 36.118
#!/usr/bin/env ruby
class Node
attr_accessor :size, :num, :left, :right
def initialize(n)
self.size = 1
self.num = n
self.left = nil
self.right = nil