|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectds.ov2.test.Card_performance
class Card_performance
Performance measurements for the protocol layer.
Field Summary | |
---|---|
private CardChannel |
card_channel
Channel to the applet. |
private Check_data_transmission |
check_transmission
Instance for data transmission checks. |
private Data_protocol_host |
data_host
Host driver instance for the data protocol. |
private Misc_protocols_host |
misc_host
Host instance for the miscellaneous protocols. |
private PrintWriter |
out
Channel for writing progress and debug messages. |
private Data_protocol_stubs |
stubs
Stubs for the data protocol. |
Constructor Summary | |
---|---|
Card_performance(Test_protocols test_protocols,
CardChannel card_channel)
Constructor. |
Method Summary | |
---|---|
void |
measure_big_send_and_receive()
Measure sending 10KB and receiving 10KB and print the timings. |
void |
measure_ping()
Measure 10 rounds of the ping protocol and print maximal, minimal and everage timings. |
void |
measure_proof()
Measure data transmission with sizes as we expect for the proof protocol for an RSA key size of 2048 bits. |
void |
measure_receive()
Measure receiving data from the card. |
void |
measure_send()
Measure sending data to the card. |
void |
run_ex()
Run all data transmission performance measurements. |
void |
run()
Exception wrapper for run_ex() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private PrintWriter out
private Misc_protocols_host misc_host
private Data_protocol_host data_host
private Check_data_transmission check_transmission
private Data_protocol_stubs stubs
private CardChannel card_channel
Constructor Detail |
---|
public Card_performance(Test_protocols test_protocols, CardChannel card_channel)
test_protocols
- protocol array of the test host drivercard_channel
- channel to the appletMethod Detail |
---|
public void measure_ping() throws CardException
CardChannel
- on communication errors
CardException
public void measure_send() throws CardException
The measurement is slightly biased, because the data is written to EEPROM on the card.
CardException
- on communication errorspublic void measure_receive() throws CardException
The measurement is slightly biased, because the data is written to EEPROM on the card.
CardException
- on communication errorspublic void measure_big_send_and_receive() throws CardException, Data_protocol_host.Data_error
The measurement is slightly biased, because the data is written to EEPROM on the card.
Data_protocol_host.Data_error
- never thrown, because the
transmission is done with performance flag set to true; only
declared to satisfy the compiler
CardException
- on communication errorspublic void measure_proof() throws CardException
The size used in this method represent the expectations from August 2008, long before the proof protocol has been implemented.
The measurement is slightly biased, because the data is written to EEPROM on the card.
CardException
- on communication errorspublic void run_ex() throws CardException, Data_protocol_host.Data_error
Data_protocol_host.Data_error
- never thrown, because the
transmission is done with performance flag set to true; only
declared to satisfy the compiler
CardException
- on communication errorspublic void run()
run_ex()
. Runs all the data
transmission performance measurements and prints escaping
exceptions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |