Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #1423: benchmarks.txt

File benchmarks.txt, 2.2 kB (added by minam, 3 years ago)

Results of running the smartsave-bm.rb benchmark script both with and without smart saves

Line 
1 WITHOUT SMART SAVES:
2
3 running each test 1000 times
4                                          user     system      total        real
5 find                                 1.680000   0.060000   1.740000 (  2.144663)
6 save_without_changes                 7.560000   0.210000   7.770000 (  9.738728)
7 save_with_changes                    7.780000   0.180000   7.960000 (  9.713814)
8 query_integer_field                  0.030000   0.000000   0.030000 (  0.034535)
9 query_string_field                   0.120000   0.000000   0.120000 (  0.180554)
10 query_string_fields                  0.070000   0.000000   0.070000 (  0.104008)
11 query_serializable_field             0.030000   0.000000   0.030000 (  0.035813)
12 query_string_field_and_save          7.710000   0.190000   7.900000 ( 10.217405)
13 query_string_fields_and_save         7.820000   0.190000   8.010000 ( 11.226728)
14 query_serializable_field_and_save    7.730000   0.210000   7.940000 ( 11.712420)
15 assign_string_field_and_save         7.890000   0.230000   8.120000 ( 12.260488)
16 assign_serializable_field_and_save   7.780000   0.200000   7.980000 ( 11.652071)
17
18 WITH SMART SAVES:
19
20 running each test 1000 times
21                                          user     system      total        real
22 find                                 1.700000   0.060000   1.760000 (  2.163490)
23 save_without_changes                 0.100000   0.000000   0.100000 (  0.145777)
24 save_with_changes                    2.310000   0.080000   2.390000 (  2.907298)
25 query_integer_field                  0.010000   0.000000   0.010000 (  0.017329)
26 query_string_field                   0.020000   0.000000   0.020000 (  0.017995)
27 query_string_fields                  0.060000   0.000000   0.060000 (  0.101862)
28 query_serializable_field             0.020000   0.000000   0.020000 (  0.018651)
29 query_string_field_and_save          0.130000   0.010000   0.140000 (  0.173211)
30 query_string_fields_and_save         0.180000   0.000000   0.180000 (  0.243594)
31 query_serializable_field_and_save    0.200000   0.000000   0.200000 (  0.269126)
32 assign_string_field_and_save         2.190000   0.080000   2.270000 (  2.778890)
33 assign_serializable_field_and_save   7.490000   0.210000   7.700000 (  9.492017)