Skip to content

Instantly share code, notes, and snippets.

@lantins
Created July 6, 2009 14:56
Show Gist options
  • Select an option

  • Save lantins/141467 to your computer and use it in GitHub Desktop.

Select an option

Save lantins/141467 to your computer and use it in GitHub Desktop.
Test decoding of 10,000 messages of each type.
lantins@macpro:~/development/iris/iris_protocol$ ruby bench.rb
user system total real
TTU Sign On: 2.210000 0.460000 2.670000 ( 2.663857)
VAM Event: 2.400000 0.420000 2.820000 ( 2.826599)
Upload Request: 1.120000 0.230000 1.350000 ( 1.354911)
Unsolicited Message: 3.300000 0.970000 4.270000 ( 4.263633)
Software Version: 2.140000 0.390000 2.530000 ( 2.528167)
Health Check: 2.480000 0.460000 2.940000 ( 2.946636)
Alarm Restore: 1.820000 0.350000 2.170000 ( 2.174257)
Acknowledge: 2.480000 0.450000 2.930000 ( 2.938974)
Track Version: 1.780000 0.320000 2.100000 ( 2.097188)
lantins@macpro:~/development/iris/iris_protocol$ ruby1.9 bench.rb
user system total real
TTU Sign On: 0.760000 0.000000 0.760000 ( 0.765089)
VAM Event: 1.000000 0.010000 1.010000 ( 1.001659)
Upload Request: 0.400000 0.000000 0.400000 ( 0.406219)
Unsolicited Message: 0.880000 0.000000 0.880000 ( 0.874974)
Software Version: 0.790000 0.000000 0.790000 ( 0.789760)
Health Check: 1.000000 0.010000 1.010000 ( 1.006974)
Alarm Restore: 0.760000 0.000000 0.760000 ( 0.752397)
Acknowledge: 1.000000 0.000000 1.000000 ( 1.003829)
Track Version: 0.740000 0.000000 0.740000 ( 0.743893)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment