I use LM339 to compare two voltage signal. Following is the schematic and the simulation.

I use 10V Vcc, Icc is normal(0.3mA), I want to compare the green(green signal Vpp is 70mV, 20kHz) and blue signal, but LM339 is not working properly. Anyone familiar with LM339 circuit design, or I need another comparator(This circuit is low-voltage and high precision, so is LM339 suitable here?) ?

I use 10V Vcc, Icc is normal(0.3mA), I want to compare the green(green signal Vpp is 70mV, 20kHz) and blue signal, but LM339 is not working properly. Anyone familiar with LM339 circuit design, or I need another comparator(This circuit is low-voltage and high precision, so is LM339 suitable here?) ?