@Profiler.profile
def test_orm_commit(n):
 for i in range(n):
  session = Session(bind=engine)
  session.add(Customer(name=('customer name %d' % i), description=('customer description %d' % i)))
  session.commit()

@ Profiler . profile def test_orm_commit ( n ) : for i in range ( n ) : session = Session ( bind = engine ) session . add ( Customer ( name = ( 'customer name %d' % i ) , description = ( 'customer description %d' % i ) ) ) session . commit ( )
individual insert/commit pairs via the orm .