- first
my $hogehoge = "barbar";
- second
package mizar | |
import ( | |
"testing" | |
) | |
type Table1 struct { | |
Id DBInteger `db:"id"` | |
Name DBVarchar `db:"name"` | |
Description DBVarchar |
my $hogehoge = "barbar";
import time | |
def stopwatch(self, wrapped): | |
def _wrapper(*args, **kwargs): | |
tic = time.time() | |
result = wrapped(*args, **kwargs) | |
toc = time.time() | |
doc = str(wrapped.__doc__).split("\n")[0] | |
print("[%s] %f[sec]" % (doc, toc - tic)) | |
return result |
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use utf8; | |
use feature qw/say/; | |
use Imager; | |
use Imager::AnimeFace; | |
use Getopt::Long; |
[- o -] $ go test -bench=. | |
PASS | |
BenchmarkSelect__Squirrel-4 100000 12914 ns/op | |
BenchmarkSelect__Sqlla-4 1000000 1455 ns/op | |
ok github.com/mackee/go-sqlla/_benchmark 2.946s |
use strict; | |
use warnings; | |
use utf8; | |
use 5.014; | |
{ | |
package MyApp::Dispatcher; | |
sub name { return 'Hogehoge' } | |
} |
use strict; | |
use warnings; | |
use utf8; | |
use 5.014; | |
{ | |
package MyApp::Dispatcher; | |
sub name { return 'Hogehoge' } | |
} |
use strict; | |
use warnings; | |
use utf8; | |
use 5.014; | |
{ | |
package MyApp::Dispatcher; | |
sub name { return 'Hogehoge' } | |
} |
--- .maltsconfig 2012-10-22 04:46:19.000000000 +0900 | |
+++ .maltsconfig.new 2012-10-22 05:14:17.000000000 +0900 | |
@@ -13,5 +13,10 @@ | |
module_camelized_path => qr/root/, | |
module_camelized_name => qr/root/, | |
}, | |
+ database => { | |
+ files => [ | |
+ 'lib/Natchan/DB.pm' |