== Content of this script: == #! /usr/bin/env python import datetime from google.appengine.ext import db print 'Content-Type: text/plain' print '' class Record(db.Model): name=db.StringProperty(required=True) num_rec_to_add=100 starttime=datetime.datetime.now() for i in range(num_rec_to_add): db.put( Record(name=('%d'%i))) endtime=datetime.datetime.now() dur=endtime-starttime print '== Content of this script: ==\n' f=open("add.py") g=f.readlines() for i in g: print i, print '' print '== Results: ==' print '' print '%d Records have been added to db' % num_rec_to_add print 'Time duration: ', dur == Results: == 100 Records have been added to db Time duration: 0:00:04.059952