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 inherit BENCHMARK_TEST redefine set_up, tear_down end feature name: STRING is -- do Result := "take" end set_up is -- do Precursor template := create_new_object_template start_timing create_transaction end tear_down is -- do commit_transaction end_timing Precursor end feature {NONE} -- Implementation run_iteration (index: INTEGER) is local res: EGS_ENTRY do if not failed then set_id (template, index - 1); res := space_proxy.take (template, transaction, 0) failed := test_exception or res = Void 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 template: BENCHMARK_BASE_OBJECT feature 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