Last active
October 26, 2016 23:54
-
-
Save tanner0101/67a008161919ebf43e3b0b3ef484b7b2 to your computer and use it in GitHub Desktop.
Laravel Benchmark
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
<?php | |
use DB; | |
Route::get('/plaintext', function() { | |
return 'Hello, world!'; | |
}); | |
Route::get('/json', function() { | |
return [ | |
'array' => [1, 2, 3], | |
'dict' => [ | |
'one' => 1, | |
'two' => 2, | |
'three' => 3 | |
], | |
'int' => 42, | |
'string' => 'test', | |
'double' => 3.14, | |
'null' => null | |
]; | |
}); | |
Route::get('/sqlite-fetch', function() { | |
return DB::select('SELECT * FROM users ORDER BY random() LIMIT 1'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment