indexing description: "[ Test for Eiffel-GigaSpaces wrapper loosely based on POCO benchmark example ]" status: "See notice at end of class." legal: "See notice at end of class." date: "$Date$" revision: "$Revision$" class BENCHMARK_TEST_TAKE_MULTIPLE inherit BENCHMARK_TEST redefine run end feature name: STRING is -- do Result := "takeMultiple" end run is local batch_count: INTEGER template: BENCHMARK_BASE_OBJECT i: INTEGER res: ARRAY[EGS_ENTRY] total_take: INTEGER do if not failed then batch_count := benchmark.iterations // benchmark.batch_size template := create_new_object_template from i := 1 until failed or i > batch_count loop start_timing create_transaction res := space_proxy.take_multiple (template, transaction, benchmark.batch_size); failed := test_exception if res /= Void then total_take := total_take + res.count end commit_transaction end_timing i := i + 1 end end rescue -- Note that this code is only for raise_xap_exception exceptions_handling_discipline handle_raised_exception (exception_manager.last_exception) failed := True retry end feature {NONE} -- Implementation run_iteration (index: INTEGER) is -- do end indexing copyright: "Copyright (c) 2008, Eiffel Software and others" license: "Eiffel Forum License v2 (see http://www.eiffel.com/licensing/forum.txt)" source: "[ Eiffel Software 356 Storke Road, Goleta, CA 93117 USA Telephone 805-685-1006, Fax 805-685-6869 Website http://www.eiffel.com Customer support http://support.eiffel.com ]" end