Objective: To estimate the impacts of different anesthetic protocols on the speed and quality of postoperative resuscitation in patients undergoing painless gastroscopy. Methods: This was a prospectively designed randomized control study that included 150 patients who underwent painless gastroscopy in Hainan Cancer Hospital affiliated to Hainan Medical College between April and December of 2023. All the patients, classified as American Society of Aneshesiologists (ASA) Grade Ⅰ or Ⅱ, were randomly divided into three groups with different anesthetic protocols, including propofol group (group P), remimazolam group (group R) and remimazolam with flumazenil group (group RF). There were eventually 50 patients in each group. The three groups of patients were compared for their resuscitation time and the time that they stayed in the resuscitation room (addressed as"room time"below). At 10 min and 20 min after resuscitation, each patient was tested for recognition ability (orientation score), walking ability and fine motor skill (including reaction speed, quick-click ability and visual memory), respectively, with possible adverse reactions recorded spontaneously, such as hypotension, dizziness, nausea and vomitus. Results: There were 29 males and 21 females in group P with an average age of (34±6) years, 27 males and 23 females in group R with an average age of (36±8) years, and 26 males and 24 females in group RF with an average age of (33±7) years, respectively. All examinations for each patient were successfully completed with no interruptions. The resuscitation time and room time of group RF were (47±15) s and (26±5) min,respectively, which were both shorter than those in either group R [(489±92) s and (35±6) min] or group P [(196±61) s and (31±7) min] (all P<0.05). The orientation score of patients in group RF at 10 min after resuscitation was (79.0±10.5), which was significantly higher than that in group R (70.0±11.7) (P<0.05). The patients' walking ability score of group RF at 10 min and 20 min after resuscitation were [(23.6±10.8), (48.0±4.5)], which were better than those in group R[(15.4±11.1), (47.6±4.8)] (both P<0.05). The patients' reaction speed and quick-click scores of group RF were [(851.0±150.9), (547.0±114.0) ms] and [(758.0±73.2), (629.0±128.9) ms], which were better than those in either group R [(1 151.0±206.0), (732.0±135.1) ms], [(893.0±110.9), (765.8±125.8) ms] or group P [(985.0±225.3), (613.0±123.2) ms], [(831.0±87.7), (691.0±115.8) ms] (all P<0.05). The incidence rate of hypotension in group P was 18% (9/50), higher than that in either Group R [4% (2/50)] or group RF [2% (1/50)] (all P<0.05). The incidence rates of dizziness, nausea and vomitus were comparable among all the three groups with no statistical differences (all P>0.05). Conclusion: In patients undergoing anesthesia with remazolam, the use of flumazenil can not only shorten the resuscitation time and the time that the patients need to stay in the resuscitation room, but also speed up the recovery of the patients' recognition, walking and fine motor skill abilities.