Inclusion Criteria:  Unilateral primary knee osteoarthritis Varus, valgus, and flexion contracture deformity of the knee joint < 10° The range of motion of the knee joint was > 80° Body mass index (BMI) < 30 No previous history of knee surgery on the affected side .Agreed to participate in the trial.  Exclusion Criteria:  Rheumatoid arthritis Extra-knee deformity Simultaneous bilateral knee arthroplasty Severe dysfunction of the liver, kidney, and blood system Severe cardiovascular diseases Gastrointestinal ulcer .Other medical conditions like nausea, vomiting, snoring, and allergy to related analgesic drugs.