* Benchmark: User Signup
(name)
| 440 | * Benchmark: User Signup |
| 441 | */ |
| 442 | async function benchmarkUserSignup(name) { |
| 443 | let counter = 0; |
| 444 | |
| 445 | return measureOperation({ |
| 446 | name, |
| 447 | iterations: 500, |
| 448 | operation: async () => { |
| 449 | counter++; |
| 450 | const user = new Parse.User(); |
| 451 | user.set('username', `benchmark_user_${Date.now()}_${counter}`); |
| 452 | user.set('password', 'benchmark_password'); |
| 453 | user.set('email', `benchmark${counter}@example.com`); |
| 454 | await user.signUp(); |
| 455 | }, |
| 456 | }); |
| 457 | } |
| 458 | |
| 459 | /** |
| 460 | * Benchmark: User Login |
nothing calls this directly
no test coverage detected