af9e4ba2ca
This CL changes all ArraySort benchmarks to execute the setup function for each iteration (one run call), instead of only once for all iterations. Even though we now also measure the time needed to copy and prepare the array, this is needed, otherwise we would mainly measure sorting already sorted arrays. R=cbruni@chromium.org, jgruber@chromium.org Change-Id: I2e0e301b52b0288b8c825c3c8401c348c4a0dee7 Reviewed-on: https://chromium-review.googlesource.com/1105045 Reviewed-by: Jakob Gruber <jgruber@chromium.org> Commit-Queue: Simon Zünd <szuend@google.com> Cr-Commit-Position: refs/heads/master@{#53825}
16 lines
663 B
JavaScript
16 lines
663 B
JavaScript
// Copyright 2018 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.
|
|
|
|
load('sort-base.js');
|
|
|
|
createSortSuite('PackedSmi', 1000, Sort, CreatePackedSmiArray);
|
|
createSortSuite('PackedDouble', 1000, Sort, CreatePackedDoubleArray);
|
|
createSortSuite('PackedElement', 1000, Sort, CreatePackedObjectArray);
|
|
|
|
createSortSuite('HoleySmi', 1000, Sort, CreateHoleySmiArray);
|
|
createSortSuite('HoleyDouble', 1000, Sort, CreateHoleyDoubleArray);
|
|
createSortSuite('HoleyElement', 1000, Sort, CreateHoleyObjectArray);
|
|
|
|
createSortSuite('Dictionary', 1000, Sort, CreateDictionaryArray);
|