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

Unified Diff: test/js-perf-test/PropertyQueries/property-queries.js

Issue 1922413002: [js-perf-test] Shorten output of JSTests/PropertyQueries microbenchmark. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments Created 4 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/PropertyQueries/PropertyQueries.json ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/js-perf-test/PropertyQueries/property-queries.js
diff --git a/test/js-perf-test/PropertyQueries/property-queries.js b/test/js-perf-test/PropertyQueries/property-queries.js
index 8c5498bd6569a55b8bec84c7beca8173ba03fe43..675c0de15095e4dffd693702d2969a835260c804 100644
--- a/test/js-perf-test/PropertyQueries/property-queries.js
+++ b/test/js-perf-test/PropertyQueries/property-queries.js
@@ -81,15 +81,13 @@ function Deinternalize(s) {
// ============================================================================
-const QUERY_INTERNALIZED_PROP = "query-internalized-prop";
-const QUERY_DEINTERNALIZED_PROP = "query-deinternalized-prop";
-const QUERY_NON_EXISTING_INTERNALIZED_PROP =
- "query-non-existing-internalized-prop";
-const QUERY_NON_EXISTING_DEINTERNALIZED_PROP =
- "query-non-existing-deinternalized-prop";
-const QUERY_ELEMENT = "query-element";
-const QUERY_ELEMENT_AS_STRING = "query-element-as-string";
-const QUERY_NON_EXISTING_ELEMENT = "query-non-existing-element";
+const QUERY_INTERNALIZED_PROP = "INTERN-prop";
+const QUERY_DEINTERNALIZED_PROP = "DEINTERN-prop";
+const QUERY_NON_EXISTING_INTERNALIZED_PROP = "NE-INTERN-prop";
+const QUERY_NON_EXISTING_DEINTERNALIZED_PROP = "NE-DEINTERN-prop";
+const QUERY_ELEMENT = "el";
+const QUERY_ELEMENT_AS_STRING = "el-str";
+const QUERY_NON_EXISTING_ELEMENT = "NE-el";
const OBJ_MODE_FAST = "fast";
const OBJ_MODE_SLOW = "slow";
@@ -238,9 +236,10 @@ for (var test_function_desc of TestFunctions) {
var test_function_name = test_function_desc.name;
for (var query_kind of TestQueries) {
+ var benchmarks = [];
+ var suit_name = test_function_name + "--" + query_kind;
for (var test_data of TestData) {
- var benchmarks = [];
- var name = test_function_name + "--" + query_kind + "--" + test_data.name;
+ var name = suit_name + "--" + test_data.name;
for (var object of test_data.objects) {
var keys = test_function_desc.keys(object);
@@ -252,8 +251,8 @@ for (var test_function_desc of TestFunctions) {
var benchmark = new Benchmark(name, false, true, 400, test_function);
benchmarks.push(benchmark);
}
- Benchmarks.push(new BenchmarkSuite(name, [100], benchmarks));
}
+ Benchmarks.push(new BenchmarkSuite(suit_name, [100], benchmarks));
}
}
« no previous file with comments | « test/js-perf-test/PropertyQueries/PropertyQueries.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698