The most effective way to speed up the heartbeat due to nervousness is to make positive self-adjustment, take a full rest before the electrocardiogram, calm the mind, take some deep breaths, and relieve the nervousness. You can rest for 5 to 10 minutes in a quiet state, talk to others to divert your attention, or go outdoors to calm down before doing the test. You can also lower your heart rate by doing the Valsalva maneuver (first inhale vigorously, hold your breath after inhalation, i.e., hold your vocal folds to keep the gas from coming out, and then exhale vigorously but keep your vocal folds closed to keep the gas from coming out) to stimulate the vagus nerve. If repeated rapid heartbeat cannot be relieved, it is recommended to consult a doctor as soon as possible to avoid delaying the condition.