Handbook
Glossary
run-benchmarks ( -- )
Vocabulary
mongodb
.
benchmark
Inputs
None
Outputs
None
Definition
USING:
mongodb.driver
;
IN:
mongodb.benchmark
:
run-benchmarks
( -- )
"db"
"db"
get*
"host"
"127.0.0.1"
get*
"port"
27017
get*
ensure-number
<mdb>
[
print-header
{
small-doc-prepare
medium-doc-prepare
large-doc-prepare
}
{
{
}
}
run-serialization-bench
{
small-doc-prepare
medium-doc-prepare
large-doc-prepare
}
{
{
}
}
run-deserialization-bench
{
small-doc-prepare
medium-doc-prepare
large-doc-prepare
}
{
{
}
{
index
}
{
errcheck
}
{
index
errcheck
}
{
batch
}
{
batch
errcheck
}
{
batch
index
errcheck
}
}
run-insert-bench
{
small-doc
medium-doc
large-doc
}
{
{
}
{
index
}
}
run-find-one-bench
{
small-doc
medium-doc
large-doc
}
{
{
}
{
index
}
}
run-find-all-bench
{
small-doc
medium-doc
large-doc
}
{
{
}
{
index
}
}
run-find-range-bench
]
with-db
;