This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """PulsePost: tiny keep-alive JSON POST load tester. | |
| Example: | |
| python pulsepost.py \ | |
| --url https://api.example.com/v1/events/value \ | |
| --api-key "$API_KEY" \ | |
| --stat-name api.random_load_test \ | |
| --workers 50 \ | |
| --duration 60 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Nobody asked for microgpt in CUDA C, which is exactly why it had to happen. | |
| // It is no longer particularly micro. | |
| // It is, however, stupidly fast. | |
| #include <cuda_runtime.h> | |
| #include <cublas_v2.h> | |
| #include <math.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> |