# How fast was that?

- ## The DBI now has performance profiling built in

  Easiest to demonstrate by example...

- ## Overall summary:

  $ DBI_PROFILE=1 test.pl
  DBI::Profile: 0.010782s 1.05% (15 calls) test.pl @ 2004-07-01 10:25:37

- ## Breakdown by statement:

  $ DBI_PROFILE=2 test.pl
  DBI::Profile: 0.010842s 1.80% (15 calls) test.pl @ 2004-07-01 10:26:15
  '' =>
  0.007768s / 9 = 0.000863s avg (first 0.000022s, min 0.000022s, max 0.007444s)
  'INSERT INTO prices (prod_id,price) VALUES(?,?)' =>
  0.001715s / 4 = 0.000429s avg (first 0.000587s, min 0.000040s, max 0.000612s)
  'UPDATE prices SET price=? WHERE prod_id=?' =>
  0.001359s / 2 = 0.000680s avg (first 0.000404s, min 0.000404s, max 0.000955s)

Previous slide | Next slide | Back to first slide | View graphic version