summaryrefslogtreecommitdiffstats
path: root/PerformanceTests/SunSpider/tests/ubench/function-sum.js
diff options
context:
space:
mode:
Diffstat (limited to 'PerformanceTests/SunSpider/tests/ubench/function-sum.js')
-rw-r--r--PerformanceTests/SunSpider/tests/ubench/function-sum.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/PerformanceTests/SunSpider/tests/ubench/function-sum.js b/PerformanceTests/SunSpider/tests/ubench/function-sum.js
new file mode 100644
index 0000000..5de7657
--- /dev/null
+++ b/PerformanceTests/SunSpider/tests/ubench/function-sum.js
@@ -0,0 +1,7 @@
+function f(x, y, z)
+{
+ return x + y + z;
+}
+
+for (var i = 0; i < 2500000; ++i)
+ f(1, 2, 3);