Skip preload on server setup if no need
y10k opened this issue · comments
tasks.
- Check if preload is slow or not at server setup
- There is no significant difference in execution time.
-
If preload is slow, skip it at server setup.- not correspond as there is no effect.
Server command test: 110.5383265 seconds
bundle exec ruby /home/toki/git_work/rims/test/cmd/test_command.rb --no-use-color -tRIMS\:\:Test\:\:CommandTest -v -ntest_server
Loaded suite /home/toki/git_work/rims/test/cmd/test_command
Started
RIMS::Test::CommandTest:
test_server[-f]: .: (1.617384)
test_server[--config-yaml]: .: (1.284667)
test_server[-r]: .: (1.582886)
test_server[--required-feature]: .: (1.626907)
test_server[-d,--passwd-file]: .: (1.820826)
test_server[--base-dir,--passwd-file]: .: (1.630612)
test_server[--log-file]: .: (1.590748)
test_server[-l]: .: (1.629705)
test_server[--log-level]: .: (1.289236)
test_server[--log-shift-age]: .: (1.337622)
test_server[--log-shift-daily]: .: (1.307664)
test_server[--log-shift-weekly]: .: (1.867343)
test_server[--log-shift-monthly]: .: (1.433225)
test_server[--log-shift-size]: .: (1.441654)
test_server[-v]: .: (1.587433)
test_server[--log-stdout]: .: (1.748005)
test_server[--protocol-log-file]: .: (1.278396)
test_server[-p]: .: (1.339540)
test_server[--protocol-log-level]: .: (1.782584)
test_server[--protocol-log-shift-age]: .: (1.289523)
test_server[--protocol-log-shift-age-daily]: .: (1.279558)
test_server[--protocol-log-shift-age-weekly]: .: (1.385816)
test_server[--protocol-log-shift-age-monthly]: .: (1.444195)
test_server[--protocol-log-shift-size]: .: (1.892744)
test_server[--daemonize]: .: (1.275064)
test_server[--no-daemonize]: .: (1.292874)
test_server[--daemon-debug]: .: (1.297020)
test_server[--no-daemon-debug]: .: (1.598016)
test_server[--status-file]: .: (1.846096)
test_server[--privilege-user]: .: (1.295720)
test_server[--privilege-group]: .: (1.323971)
test_server[-s]: .: (1.576868)
test_server[--listen]: .: (1.595862)
test_server[--accept-polling-timeout]: .: (1.298322)
test_server[--process-num]: .: (1.901226)
test_server[--process-num,--process-queue-size]: .: (1.592769)
test_server[--process-num,--process-queue-polling-timeout]: .: (1.536524)
test_server[--process-num,--process-send-io-polling-timeout]: .: (1.842693)
test_server[--thread-num]: .: (1.293780)
test_server[--thread-queue-size]: .: (1.357404)
test_server[--thread-queue-polling-timeout]: .: (1.321710)
test_server[--send-buffer-limit]: .: (1.300754)
test_server[--read-polling-interval]: .: (1.584119)
test_server[--command-wait-timeout]: .: (1.621773)
test_server[--drb-process-num]: .: (1.413628)
test_server[--bulk-response-count]: .: (1.750897)
test_server[--read-lock-timeout]: .: (1.488002)
test_server[--write-lock-timeout]: .: (2.046395)
test_server[--clenup-write-lock-timeout]: .: (2.276916)
test_server[--meta-kvs-type]: .: (2.445776)
test_server[--meta-kvs-config]: .: (2.192505)
test_server[--use-meta-kvs-checksum]: .: (1.700680)
test_server[--no-use-meta-kvs-checksum]: .: (1.983956)
test_server[--text-kvs-type]: .: (1.284428)
test_server[--text-kvs-config]: .: (1.986450)
test_server[--use-text-kvs-checksum]: .: (1.918245)
test_server[--no-use-text-kvs-checksum]: .: (1.291431)
test_server[--auth-hostname]: .: (1.266801)
test_server[--passwd-config]: .: (1.915110)
test_server[--mail-delivery-user]: .: (1.880086)
test_server[deplicated:--imap-host]: .: (2.004092)
test_server[deplicated:--imap-port]: .: (1.406246)
test_server[deplicated:--ip-addr]: .: (1.567222)
test_server[deplicated:--ip-port]: .: (1.859531)
test_server[deplicated:--kvs-type]: .: (1.613539)
test_server[deplicated:--use-kvs-cksum]: .: (1.528370)
test_server[deplicated:--no-use-kvs-cksum]: .: (1.722343)
test_server[deplicated:-u,-w]: .: (1.658658)
test_server[deplicated:--username,--password]: .: (2.065881)
Finished in 110.5383265 seconds.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
69 tests, 345 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
----------------------------------------------------------------------------------------------------------------------------------------------------------------
0.62 tests/s, 3.12 assertions/s
Server command test (skip preload libraries): 117.2358364 seconds
There is no significant difference in execution time.
bundle exec ruby /home/toki/git_work/rims/test/cmd/test_command.rb --no-use-color -tRIMS\:\:Test\:\:CommandTest -v -ntest_server
Loaded suite /home/toki/git_work/rims/test/cmd/test_command
Started
RIMS::Test::CommandTest:
test_server[-f]: .: (2.061287)
test_server[--config-yaml]: .: (1.329622)
test_server[-r]: .: (1.390866)
test_server[--required-feature]: .: (1.421617)
test_server[-d,--passwd-file]: .: (1.818611)
test_server[--base-dir,--passwd-file]: .: (1.325482)
test_server[--log-file]: .: (1.550619)
test_server[-l]: .: (1.599577)
test_server[--log-level]: .: (1.978924)
test_server[--log-shift-age]: .: (1.746927)
test_server[--log-shift-daily]: .: (1.606502)
test_server[--log-shift-weekly]: .: (1.520372)
test_server[--log-shift-monthly]: .: (2.300547)
test_server[--log-shift-size]: .: (1.734914)
test_server[-v]: .: (1.803573)
test_server[--log-stdout]: .: (1.354638)
test_server[--protocol-log-file]: .: (1.417944)
test_server[-p]: .: (1.652195)
test_server[--protocol-log-level]: .: (1.583035)
test_server[--protocol-log-shift-age]: .: (2.633399)
test_server[--protocol-log-shift-age-daily]: .: (2.313691)
test_server[--protocol-log-shift-age-weekly]: .: (1.403933)
test_server[--protocol-log-shift-age-monthly]: .: (1.847469)
test_server[--protocol-log-shift-size]: .: (1.549273)
test_server[--daemonize]: .: (1.900975)
test_server[--no-daemonize]: .: (1.996193)
test_server[--daemon-debug]: .: (1.325089)
test_server[--no-daemon-debug]: .: (1.734319)
test_server[--status-file]: .: (1.379280)
test_server[--privilege-user]: .: (1.304191)
test_server[--privilege-group]: .: (1.936803)
test_server[-s]: .: (1.944855)
test_server[--listen]: .: (2.810002)
test_server[--accept-polling-timeout]: .: (2.610811)
test_server[--process-num]: .: (2.222024)
test_server[--process-num,--process-queue-size]: .: (1.628362)
test_server[--process-num,--process-queue-polling-timeout]: .: (1.733944)
test_server[--process-num,--process-send-io-polling-timeout]: .: (1.550468)
test_server[--thread-num]: .: (1.366190)
test_server[--thread-queue-size]: .: (1.331614)
test_server[--thread-queue-polling-timeout]: .: (1.318426)
test_server[--send-buffer-limit]: .: (1.662936)
test_server[--read-polling-interval]: .: (1.357856)
test_server[--command-wait-timeout]: .: (1.624413)
test_server[--drb-process-num]: .: (1.784218)
test_server[--bulk-response-count]: .: (1.855795)
test_server[--read-lock-timeout]: .: (1.868191)
test_server[--write-lock-timeout]: .: (1.502749)
test_server[--clenup-write-lock-timeout]: .: (1.391281)
test_server[--meta-kvs-type]: .: (1.670283)
test_server[--meta-kvs-config]: .: (1.647273)
test_server[--use-meta-kvs-checksum]: .: (3.005127)
test_server[--no-use-meta-kvs-checksum]: .: (2.248602)
test_server[--text-kvs-type]: .: (1.392696)
test_server[--text-kvs-config]: .: (1.425332)
test_server[--use-text-kvs-checksum]: .: (1.655038)
test_server[--no-use-text-kvs-checksum]: .: (1.369335)
test_server[--auth-hostname]: .: (1.658161)
test_server[--passwd-config]: .: (1.499945)
test_server[--mail-delivery-user]: .: (1.486193)
test_server[deplicated:--imap-host]: .: (1.417508)
test_server[deplicated:--imap-port]: .: (1.342763)
test_server[deplicated:--ip-addr]: .: (1.331904)
test_server[deplicated:--ip-port]: .: (1.631915)
test_server[deplicated:--kvs-type]: .: (1.934369)
test_server[deplicated:--use-kvs-cksum]: .: (1.481977)
test_server[deplicated:--no-use-kvs-cksum]: .: (1.589871)
test_server[deplicated:-u,-w]: .: (1.399089)
test_server[deplicated:--username,--password]: .: (1.940673)
Finished in 117.2358364 seconds.
----------------------------------------------------------------------------------------------------------------------------------------------------------------
69 tests, 345 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
----------------------------------------------------------------------------------------------------------------------------------------------------------------
0.59 tests/s, 2.94 assertions/s
Not correspond as there is no effect.