forked from TechEmpower/FrameworkBenchmarks
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/TechEmpower/FrameworkBenc…
- Loading branch information
Showing
420 changed files
with
6,020 additions
and
2,991 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# POCO C++ Libraries Benchmarking Test | ||
|
||
- [POCO Github Repository](https://github.com/pocoproject/poco) | ||
- [POCO Website](https://pocoproject.org/) | ||
|
||
## Software Versions | ||
|
||
- [buildpack-deps noble](https://hub.docker.com/_/buildpack-deps) | ||
- [g++ 14](https://gcc.gnu.org/gcc-14/) | ||
- [c++17](https://en.cppreference.com/w/cpp/17) | ||
- [POCO 1.13.1](https://pocoproject.org/releases/poco-1.13.1/poco-1.13.1-all.zip) | ||
|
||
## Test URLs | ||
|
||
- `PLAINTEXT` - [http://127.0.0.1:8080/plaintext](http://127.0.0.1:8080/plaintext) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
24 changes: 24 additions & 0 deletions
24
frameworks/CSharp/appmpower/src/appMpower.Orm/Serializers/FortunesSerializer.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Text.Json; | ||
using appMpower.Orm.Objects; | ||
|
||
namespace appMpower.Orm.Serializers | ||
{ | ||
public class FortunesSerializer : IJsonSerializer<List<Fortune>> | ||
{ | ||
public void Serialize(Utf8JsonWriter utf8JsonWriter, List<Fortune> fortunes) | ||
{ | ||
utf8JsonWriter.WriteStartArray(); | ||
|
||
foreach (Fortune fortune in fortunes) | ||
{ | ||
utf8JsonWriter.WriteStartObject(); | ||
utf8JsonWriter.WriteNumber("id", fortune.Id); | ||
utf8JsonWriter.WriteString("message", fortune.Message); | ||
utf8JsonWriter.WriteEndObject(); | ||
} | ||
|
||
utf8JsonWriter.WriteEndArray(); | ||
utf8JsonWriter.Flush(); | ||
} | ||
} | ||
} |
This file contains 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
Oops, something went wrong.