Permalink
Browse files

adding VectorPerformance.io sample

  • Loading branch information...
1 parent 1e9bcbc commit 8ff6353748e5b6938cb6b234827346922959a1c0 Steve Dekorte committed Jan 30, 2008
Showing with 17 additions and 0 deletions.
  1. +17 −0 libs/iovm/samples/VectorPerformance.io
@@ -0,0 +1,17 @@
+
+
+iters := 1000
+size := 1024
+ops := iters * size
+
+v1 := Vector clone setSize(size) rangeFill
+v2 := Vector clone setSize(size) rangeFill
+
+dt := Date secondsToRun(
+ iters repeat(v1 *= v2)
+)
+
+writeln(dt, " seconds for ", ops, " ops")
+writeln((ops/(dt*1000000000)) asString(1, 3), " GFLOPS")
+
+

0 comments on commit 8ff6353

Please sign in to comment.