[Assorted-commits] SF.net SVN: assorted: [375] hash-join/trunk/src/hashjoin.cc
Brought to you by:
yangzhang
From: <yan...@us...> - 2008-02-11 17:02:51
|
Revision: 375 http://assorted.svn.sourceforge.net/assorted/?rev=375&view=rev Author: yangzhang Date: 2008-02-11 09:02:55 -0800 (Mon, 11 Feb 2008) Log Message: ----------- moved to new output for more friendly log processing Modified Paths: -------------- hash-join/trunk/src/hashjoin.cc Modified: hash-join/trunk/src/hashjoin.cc =================================================================== --- hash-join/trunk/src/hashjoin.cc 2008-02-11 15:53:17 UTC (rev 374) +++ hash-join/trunk/src/hashjoin.cc 2008-02-11 17:02:55 UTC (rev 375) @@ -151,38 +151,45 @@ cout << "using " << ncpus << " cpus" << endl; - timer t("main time: "); - // Load the data files. cout << "loading movies" << endl; + timer tldmov("loading movies time: "); movdb mdb(movies); - t.print(); + tldmov.print(); cout << "loading actresses" << endl; + timer tldact("loading actresses time: "); actdb adb(actresses); - t.print(); + tldact.print(); + timer ttotal("total time: "); + // Hash-partition the data among the nodes. cout << "hash-partitioning movies into per-core buckets" << endl; + timer thpmov("hash-partitioning movies time: "); const bucket **movbucs = mdb.partition(); - t.print(); + thpmov.print(); cout << "hash-partitioning actresses into per-core buckets" << endl; + timer thpact("hash-partitioning actresses time: "); const bucket **actbucs = adb.partition(); - t.print(); + thpact.print(); // Perform the hash-join. cout << "building with movies" << endl; + timer tbuild("building with movies time: "); const hmap *hs = mdb.build(movbucs); - t.print(); + tbuild.print(); cout << "probing with actresses" << endl; + timer tprobe("probing with actresses time: "); adb.probe(hs, actbucs, true); - t.print(); + tprobe.print(); + ttotal.print(); cout << "done" << endl; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |