Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2186)

Unified Diff: test/js-perf-test/Modules/basic-export.js

Issue 2833773002: [modules] Add a simple micro-benchmark for import/export accesses. (Closed)
Patch Set: Fix. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/js-perf-test/JSTests.json ('k') | test/js-perf-test/Modules/basic-import.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/js-perf-test/Modules/basic-export.js
diff --git a/test/js-perf-test/Modules/basic-export.js b/test/js-perf-test/Modules/basic-export.js
new file mode 100644
index 0000000000000000000000000000000000000000..3b889747afaf733ff10fe5a91e25b81e2dfa728b
--- /dev/null
+++ b/test/js-perf-test/Modules/basic-export.js
@@ -0,0 +1,7 @@
+// Copyright 2017 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+export let value = 0;
+for (let i = 0; i < iterations; ++i) ++value;
+if (value != iterations) throw value;
« no previous file with comments | « test/js-perf-test/JSTests.json ('k') | test/js-perf-test/Modules/basic-import.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698