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_WITH_DOUBLES inherit BENCHMARK create make feature -- Creation make (parameters: BENCHMARK_PARAMETERS) is do initialize_parameters (parameters) end feature create_new_object_template: BENCHMARK_BASE_OBJECT is do create {POCO_15_DOUBLES} Result.make end create_new_object_for_benchmark: BENCHMARK_BASE_OBJECT is local res: POCO_15_DOUBLES do create res.make res.set_var1 (1) res.set_var2 (10) res.set_var3 (100) res.set_var4 (1000) res.set_var5 (10000) res.set_var6 (100000) res.set_var7 (1000000) res.set_var8 (10000000) res.set_var9 (100000000) res.set_var10 (1) res.set_var11 (10) res.set_var12 (100) res.set_var13 (1000) Result := res end update_object (an_object: BENCHMARK_BASE_OBJECT; index: INTEGER) is -- Updates the object data for update test local res: POCO_15_DOUBLES do res ?= an_object if res /= Void then res.set_id (index) res.set_var1 (index*2) res.set_var2 (index*2) res.set_var3 (index*2) res.set_var4 (index*2) end end create_benchmark_object_from_entry (an_entry: EGS_ENTRY): BENCHMARK_BASE_OBJECT is do if an_entry /= Void then create {POCO_15_DOUBLES} Result.make_from_entry (an_entry) end end 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