Skip to content

Instantly share code, notes, and snippets.

Created April 6, 2010 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/357622 to your computer and use it in GitHub Desktop.
Save anonymous/357622 to your computer and use it in GitHub Desktop.
[dwight@dmt61 p]$ ./mongo
MongoDB shell version: 1.5.0-pre-
url: test
Tue Apr 6 09:54:27 *** warning: spider monkey build without utf8 support. consider rebuilding with utf8 support
connecting to: test
type "help" for help
>
>
> t = db.abc;
test.abc
> a = new Date(); for( x = 0; x < 50000; x++ ) t.insert({_id:x}); print( db.getLastError() ); b = new Date();
null
"Tue Apr 06 2010 09:56:18 GMT-0400 (EDT)"
> b-a
2235
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment