| 
									
										
										
										
											2021-07-23 05:29:17 -06:00
										 |  |  | async function main() { | 
					
						
							|  |  |  |   console.info("Running benchmarks..."); | 
					
						
							|  |  |  |   await sleep(1752); | 
					
						
							|  |  |  |   console.info("jQuery: 178"); | 
					
						
							|  |  |  |   await sleep(761); | 
					
						
							|  |  |  |   console.info("DOM: 1428"); | 
					
						
							| 
									
										
										
										
											2021-07-29 16:33:12 -07:00
										 |  |  |   await sleep(696); | 
					
						
							|  |  |  |   console.info("Angular: 2517"); | 
					
						
							| 
									
										
										
										
											2021-07-23 05:29:17 -06:00
										 |  |  |   await sleep(520); | 
					
						
							|  |  |  |   console.info("React: 3785"); | 
					
						
							| 
									
										
										
										
											2024-08-29 16:46:55 -06:00
										 |  |  |   await sleep(128); | 
					
						
							|  |  |  |   console.info("Vite: 6666"); | 
					
						
							| 
									
										
										
										
											2021-07-23 05:29:17 -06:00
										 |  |  |   await sleep(230); | 
					
						
							|  |  |  |   console.info('"Vanilla" JS: 6237'); | 
					
						
							|  |  |  |   await sleep(65); | 
					
						
							|  |  |  |   console.info("AJQuery: 9001"); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | async function sleep(delay) { | 
					
						
							|  |  |  |   return await new Promise(function (resolve) { | 
					
						
							|  |  |  |     setTimeout(resolve, delay); | 
					
						
							|  |  |  |   }); | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if (require.main === module) { | 
					
						
							|  |  |  |   main(); | 
					
						
							|  |  |  | } |