• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Firebird 2.5 Benchmark, by Tsutomu Hayashi (Tomneko)
 

Firebird 2.5 Benchmark, by Tsutomu Hayashi (Tomneko)

on

  • 8,105 views

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.

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.

Statistics

Views

Total Views
8,105
Views on SlideShare
7,964
Embed Views
141

Actions

Likes
2
Downloads
35
Comments
1

4 Embeds 141

http://www.techgig.com 115
http://10.150.200.57 16
http://www.slideshare.net 9
http://www.slideee.com 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • < 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;
  • ・本体は NTT-X ストアで 14,800 円。もう終わっちゃったけど・・・ ・ PhenomⅡ にしたかったけど、 AM2+ までの対応なので Phonem にしました。 ・メモリは ECC じゃないけど、 4GB は最低限欲しいですよね。
  • CS っていうのは、クラシックサーバーです。カーネル・サンダースじゃないですよ。ましてやサンダース軍曹じゃないです。
  • 500 クライアントになっても全然速度が落ちないよ・・・、これはすごい!

Firebird 2.5 Benchmark, by Tsutomu Hayashi (Tomneko) Firebird 2.5 Benchmark, by Tsutomu Hayashi (Tomneko) Presentation Transcript

  • FirebirdJapanUsersAssociation TsutomuHayashi Firebird2.5 BenchMarks - Performance VS MySQL / PostgreSQL -
  • DBBench
    • pgbench(PostgreSQL) port for Firebird/MySQL
      • Delphi + dbExpress Mutli Thread impliment
      • Change dbExpress drivers enables for other RDBMSs
      • Same code/Same binary testing for Firebird/MySQL/PostgreSQL
      • Using GUI for easy use
      • Most easiest Database Benchmark
    Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • TPC-B
    • TPC is the benchmark tests definition by " Transaction Processing Performanc Counsil"
      • TPC-B is defined at 1990, deplicated 1995
      • This test assume batch operation with many parallel transactions.
      • Simulation dealing account between branches in bank.
    Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • TPC-B
    • Usin 4 tables
      • create table branches(bid int not null,bbalance int,filler char(88));
      • create table tellers(tid int not null,bid int,tbalance int,filler char(84));
      • create table accounts(aid int not null,bid int,abalance int,filler char(84));
      • create table history(tid int,bid int,aid int,delta int,mtime timestamp,filler char(22))
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • TPC-B
      • Processing is
      • update accounts set abalance = abalance + :delta where aid = :aid;
      • select abalance from accounts where aid = :aid;
      • update tellers set tbalance = tbalance + :delta where tid = :tid;
      • update branches set bbalance = bbalance + :delta where bid = :bid;
      • insert into history(tid,bid,aid,delta) values(:tid,:bid,:aid,:delta);
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • Scaling Factor
      • Scaling factor is test scale
      • Scaling factor affects
        • Branch count equals scaling factor
        • Teller count is scaling factor * 10
        • Account count is scaling factor * 100,000
      • So I use scaling factor 100
        • Branch is 100, Teller is 1000, Accounts is 10,000,000
        • Firebird database almost 600MB, MySQL is almost 1.2GB
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • 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
  • Firebird 2.1SS vs Firebird 2.5SS
    • Firebird2.1 vs Firebird2.5
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Windows Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • Firebird 2.1CS vs Firebird 2.5CS
    • Firebird2.1 vs Firebird2.5
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Windows Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • Firebird 2.1SS vs Firebird 2.5 SC
    • Firebird2.1 vs Firebird2.5
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Windows Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • Firebird 2.1SS vs Firebird 2.5SS
    • Firebird2.1 vs Firebird2.5
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Linux draw Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • Firebird 2.1CS vs Firebird 2.5CS
    • Firebird2.1 vs Firebird2.5
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Linux Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • Firebird 2.1SS vs Firebird 2.5SC
    • Firebird2.1 vs Firebird2.5
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Linux Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • MySQL 5.1 vs Firebird 2.5SC
    • MySQL5.1 vs Firebird2.5
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Windows Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • MySQL 5.1 vs Firebird 2.5SC
    • MySQL5.1 vs Firebird2.5
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Linux Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • MySQL 5.1 vs Firebird 1.5SS
    • MySQL5.1 vs Firebird2.5
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Linux draw Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • PostgreSQL 8.4.1 vs Firebird 2.5CS
    • PostgreSQL8.4 vs Firebird2.5
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Windows Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • PostgreSQL 8.4.1 vs Firebird 2.5CS
    • PostgreSQL8.4 vs Firebird2.5
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Linux Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • on Linux, Firebird is very slow!! Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Linux Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • Ext3 vs XFS
    • I assume Filesystem? Using Fire bird2.5SC
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Linux Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • Linux+XFS is very Fast!
    • Test with XFS for many clients
    Copyright(c) 2008 Tsutomu Hayashi All rights reserved. @Linux Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • Results
    •   Benchmarks are rough estimation at all.
    •   Firebird2.5 is very fast than other RDBMSs.
    •   Normaly running many clients over 500 .
    Copyright(c) 2009 Tsutomu Hayashi All rights reserved.
  • Coming Soon
    • Japanese publisher "Shoei-sya" will publish new Firebird book in Japan at December 2009.
    Copyright(c) 2009 Tsutomu Hayashi All rights reserved.