In this presentation Tsutomu Hayashi presents the results of testing Firebird 2.5 and 2.1 versus MySQL and Postgresql. Firebird shows great results against MySQL and Postgresql.
7. Copyright(c) 2009 Tsutomu Hayashi All rights reserved. Benchmark Environment HP ML115G5 AMD AthlonTM 1640B ( 2.7GHz ) AMD PhenomTM 9350e ( 2.0GHz ) ECC 512MB DDR2-6400 Non-ECC 4GB DDR2-6400 HDD is standard SATA160GB
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19. on Linux, Firebird is very slow!! Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Linux Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
20.
21.
22.
23.
Hinweis der Redaktion
< alter character set のサンプル> create database 'people.fdb' default character set win1252; alter character set win1252 set default collation win_ptbr; create table person ( id integer, name varchar(50) /* will use the database default character set and the win1252 default collation */ ); insert into person values (1, 'adriano'); insert into person values (2, 'ADRIANO'); /* will retrieve both records because win_ptbr is case insensitive */ select * from person where name like 'A%';
(1) begin; (2) update accounts set abalance = abalance + :delta where aid = :aid; ここで, :delta は 1 から 1000 までの値を取る乱数, :aid は 1 から 100000 まで の値を取る乱数です.以下,乱数の値はそれぞれこのトランザクションの 中では同じ値を使います. (3) select abalance from accounts where aid = :aid; ここでは 1 件だけ検索されます. (4) update tellers set tbalance = tbalance + :delta where tid = :tid; ここで :tid は 1 から 10 の間の値をとる乱数です. (5) update branches set bbalance = bbalance + :delta where bid = :bid; ここで :bid は 1 から [ スケリングファクター ] の間の値を取る乱数です. (6) insert into history(tid,bid,aid,delta) values(:tid,:bid,:aid,:delta); (7) end;
(1) begin; (2) update accounts set abalance = abalance + :delta where aid = :aid; ここで, :delta は 1 から 1000 までの値を取る乱数, :aid は 1 から 100000 まで の値を取る乱数です.以下,乱数の値はそれぞれこのトランザクションの 中では同じ値を使います. (3) select abalance from accounts where aid = :aid; ここでは 1 件だけ検索されます. (4) update tellers set tbalance = tbalance + :delta where tid = :tid; ここで :tid は 1 から 10 の間の値をとる乱数です. (5) update branches set bbalance = bbalance + :delta where bid = :bid; ここで :bid は 1 から [ スケリングファクター ] の間の値を取る乱数です. (6) insert into history(tid,bid,aid,delta) values(:tid,:bid,:aid,:delta); (7) end;