Skip to content

Commit dfc6bae

Browse files
committed
update
1 parent 682d6eb commit dfc6bae

File tree

4 files changed

+268
-41
lines changed

4 files changed

+268
-41
lines changed

benchmark.html

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset='utf-8'>
5+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
7+
<link href='https://fonts.googleapis.com/css?family=Architects+Daughter' rel='stylesheet' type='text/css'>
8+
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
9+
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
10+
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print">
11+
12+
<!--[if lt IE 9]>
13+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
14+
<![endif]-->
15+
16+
<title>Json-iterator.GitHub.io by json-iterator</title>
17+
</head>
18+
19+
<body>
20+
<header>
21+
<div class="inner">
22+
<h1>json iterator</h1>
23+
<h2>faster than DOM, more usable than SAX/StAX</h2>
24+
<a href="https://github.com/json-iterator/java" class="button" id="button1">
25+
<small>jsoniter</small>Java 1.0.0</a>
26+
<a href="https://github.com/json-iterator/go" class="button" id="button2">
27+
<small>jsoniter</small>Go 1.0.0</a>
28+
</div>
29+
</header>
30+
31+
<div id="content-wrapper">
32+
<div class="inner clearfix">
33+
<section id="main-content">
34+
<h3>
35+
<a id="bind-api" class="anchor" href="#bind-api" aria-hidden="true">
36+
37+
<span aria-hidden="true" class="octicon octicon-link"></span></a>
38+
bind api
39+
</h3>
40+
<ul>
41+
<li>
42+
Java (jackson, gson, dsljson, fastjson)
43+
<ul>
44+
<li><a href="#java-bind-10-kb">10kb</a></li>
45+
<li><a href="#java-bind-100-kb">100kb</a></li>
46+
</ul>
47+
</li>
48+
<li>
49+
Go (encoding/json, jsonparser, easyjson)
50+
<ul>
51+
<li>Small Payload</li>
52+
<li>Medium Payload</li>
53+
</ul>
54+
</li>
55+
</ul>
56+
<h3>
57+
<a id="iterator-api" class="anchor" href="#iterator-api" aria-hidden="true">
58+
59+
<span aria-hidden="true" class="octicon octicon-link"></span></a>
60+
iterator api
61+
</h3>
62+
<h3>
63+
<a name="java-bind-10-kb" class="anchor" aria-hidden="true">
64+
<span aria-hidden="true" class="octicon octicon-link"></span></a>
65+
Java bind-api 10 kb
66+
</h3>
67+
<table>
68+
<thead>
69+
<tr>
70+
<th>jsoniter</th>
71+
<th>dsljson</th>
72+
<th>fastjson</th>
73+
<th>gson</th>
74+
<th>jackson</th>
75+
</tr>
76+
</thead>
77+
<tbody>
78+
<tr>
79+
<td>5791477.392</td>
80+
<td>1825251.497</td>
81+
<td>528568.402</td>
82+
<td>509073.118</td>
83+
<td>1002068.202</td>
84+
</tr>
85+
</tbody>
86+
</table>
87+
<h3>
88+
<a name="java-bind-100-kb" class="anchor" aria-hidden="true">
89+
<span aria-hidden="true" class="octicon octicon-link"></span></a>
90+
Java bind-api 100 kb
91+
</h3>
92+
<table>
93+
<thead>
94+
<tr>
95+
<th>jsoniter</th>
96+
<th>dsljson</th>
97+
<th>fastjson</th>
98+
<th>gson</th>
99+
<th>jackson</th>
100+
</tr>
101+
</thead>
102+
<tbody>
103+
<tr>
104+
<td>64452.613</td>
105+
<td>19128.133</td>
106+
<td>8612.036</td>
107+
<td>6303.252</td>
108+
<td>12011.405</td>
109+
</tr>
110+
</tbody>
111+
</table>
112+
113+
</section>
114+
115+
<aside id="sidebar">
116+
<a href="/">go back <<<</a>
117+
</aside>
118+
</div>
119+
</div>
120+
121+
122+
</body>
123+
</html>

index.cn.html

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset='utf-8'>
5+
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
7+
<link href='https://fonts.googleapis.com/css?family=Architects+Daughter' rel='stylesheet' type='text/css'>
8+
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen">
9+
<link rel="stylesheet" type="text/css" href="stylesheets/github-light.css" media="screen">
10+
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print">
11+
12+
<!--[if lt IE 9]>
13+
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
14+
<![endif]-->
15+
16+
<title>Json-iterator.GitHub.io by json-iterator</title>
17+
</head>
18+
19+
<body>
20+
<header>
21+
<div class="inner">
22+
<h1>json iterator</h1>
23+
<h2>faster than DOM, more usable than SAX/StAX</h2>
24+
<a href="https://github.com/json-iterator/java" class="button" id="button1">
25+
<small>jsoniter</small>Java 1.0.0</a>
26+
<a href="https://github.com/json-iterator/go" class="button" id="button2">
27+
<small>jsoniter</small>Go 1.0.0</a>
28+
</div>
29+
</header>
30+
31+
<div id="content-wrapper">
32+
<div class="inner clearfix">
33+
<section id="main-content">
34+
<h3>
35+
<a id="why-jsoniter" class="anchor" href="#why-jsoniter" aria-hidden="true">
36+
37+
<span aria-hidden="true" class="octicon octicon-link"></span></a>
38+
json iterator (jsoniter) 有何独特之处?
39+
</h3>
40+
41+
<p>
42+
Json iterator 总是给你最好的性能
43+
<ul>
44+
<li>
45+
它可以把数据绑定到 class/struct 上,但是可以比普通的库快10倍 (这里是 <a href="/benchmark.html">性能评测</a>)
46+
</li>
47+
<li>
48+
独特的 iterator api 让你可以用流的的方式直接读取JSON (来看看 <a href="/streaming.html">流式解析</a> 的魅力吧)
49+
</li>
50+
<li>
51+
bind api 和 iterator api 可以无缝集成 (这里是 <a href="/integration.html">集成方式</a>)
52+
</li>
53+
</ul>
54+
而且同时提供 Java 和 Go 两个版本,api相同性能都很棒哦。
55+
</p>
56+
57+
<h3>
58+
<a id="contribution" class="anchor" href="#contribution" aria-hidden="true"><span
59+
aria-hidden="true" class="octicon octicon-link"></span></a>
60+
欢迎你的帮助
61+
</h3>
62+
63+
<p>小项目bug难免,欢迎提 issue 和 pull request</p>
64+
65+
</section>
66+
67+
<aside id="sidebar">
68+
<p>This document is also available as</p>
69+
<ul>
70+
<li><a href="/">English</a></li>
71+
<li><a href="/index.cn.html">中文</a></li>
72+
</ul>
73+
<p>created by [email protected]</p>
74+
</aside>
75+
</div>
76+
</div>
77+
78+
79+
</body>
80+
</html>

index.html

Lines changed: 53 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE html>
22
<html>
3-
<head>
3+
<head>
44
<meta charset='utf-8'>
55
<meta http-equiv="X-UA-Compatible" content="chrome=1">
66
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
@@ -14,54 +14,67 @@
1414
<![endif]-->
1515

1616
<title>Json-iterator.GitHub.io by json-iterator</title>
17-
</head>
17+
</head>
1818

19-
<body>
20-
<header>
21-
<div class="inner">
22-
<h1>Json-iterator.GitHub.io</h1>
19+
<body>
20+
<header>
21+
<div class="inner">
22+
<h1>json iterator</h1>
2323
<h2>faster than DOM, more usable than SAX/StAX</h2>
24-
<a href="https://github.com/json-iterator" class="button"><small>Follow me on</small> GitHub</a>
25-
</div>
26-
</header>
24+
<a href="https://github.com/json-iterator/java" class="button" id="button1">
25+
<small>jsoniter</small>Java 1.0.0</a>
26+
<a href="https://github.com/json-iterator/go" class="button" id="button2">
27+
<small>jsoniter</small>Go 1.0.0</a>
28+
</div>
29+
</header>
2730

28-
<div id="content-wrapper">
29-
<div class="inner clearfix">
31+
<div id="content-wrapper">
32+
<div class="inner clearfix">
3033
<section id="main-content">
31-
<h3>
32-
<a id="welcome-to-github-pages" class="anchor" href="#welcome-to-github-pages" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Welcome to GitHub Pages.</h3>
33-
34-
<p>This automatic page generator is the easiest way to create beautiful pages for all of your projects. Author your page content here <a href="https://guides.github.com/features/mastering-markdown/">using GitHub Flavored Markdown</a>, select a template crafted by a designer, and publish. After your page is generated, you can check out the new <code>gh-pages</code> branch locally. If you’re using GitHub Desktop, simply sync your repository and you’ll see the new branch.</p>
35-
36-
<h3>
37-
<a id="designer-templates" class="anchor" href="#designer-templates" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Designer Templates</h3>
38-
39-
<p>We’ve crafted some handsome templates for you to use. Go ahead and click 'Continue to layouts' to browse through them. You can easily go back to edit your page before publishing. After publishing your page, you can revisit the page generator and switch to another theme. Your Page content will be preserved.</p>
40-
41-
<h3>
42-
<a id="creating-pages-manually" class="anchor" href="#creating-pages-manually" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Creating pages manually</h3>
43-
44-
<p>If you prefer to not use the automatic generator, push a branch named <code>gh-pages</code> to your repository to create a page manually. In addition to supporting regular HTML content, GitHub Pages support Jekyll, a simple, blog aware static site generator. Jekyll makes it easy to create site-wide headers and footers without having to copy them across every page. It also offers intelligent blog support and other advanced templating features.</p>
34+
<h3>
35+
<a id="why-jsoniter" class="anchor" href="#why-jsoniter" aria-hidden="true">
36+
37+
<span aria-hidden="true" class="octicon octicon-link"></span></a>
38+
Why json iterator (jsoniter)?
39+
</h3>
40+
41+
<p>
42+
Json iterator is a novel JSON parsing library with best performance
43+
<ul>
44+
<li>
45+
It can bind data to your class/struct, just 10x faster (see <a href="/benchmark.html">benchmark</a>)
46+
</li>
47+
<li>
48+
Unique iterator api allows you work with JSON directly in a streaming way (how <a href="/streaming.html">streaming</a> works)
49+
</li>
50+
<li>
51+
Mix bind api and iterator api seamlessly (see <a href="/integration.html">integration</a>)
52+
</li>
53+
</ul>
54+
Also, it is has both Java and Go version with same api and performance.
55+
</p>
56+
57+
<h3>
58+
<a id="contribution" class="anchor" href="#contribution" aria-hidden="true"><span
59+
aria-hidden="true" class="octicon octicon-link"></span></a>
60+
Contribution Welcomed !
61+
</h3>
62+
63+
<p>Report issue or pull request, or email [email protected]</p>
4564

46-
<h3>
47-
<a id="authors-and-contributors" class="anchor" href="#authors-and-contributors" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Authors and Contributors</h3>
48-
49-
<p>You can @mention a GitHub username to generate a link to their profile. The resulting <code>&lt;a&gt;</code> element will link to the contributor’s GitHub Profile. For example: In 2007, Chris Wanstrath (<a href="https://github.com/defunkt" class="user-mention">@defunkt</a>), PJ Hyett (<a href="https://github.com/pjhyett" class="user-mention">@pjhyett</a>), and Tom Preston-Werner (<a href="https://github.com/mojombo" class="user-mention">@mojombo</a>) founded GitHub.</p>
50-
51-
<h3>
52-
<a id="support-or-contact" class="anchor" href="#support-or-contact" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Support or Contact</h3>
53-
54-
<p>Having trouble with Pages? Check out our <a href="https://help.github.com/pages">documentation</a> or <a href="https://github.com/contact">contact support</a> and we’ll help you sort it out.</p>
5565
</section>
5666

5767
<aside id="sidebar">
58-
59-
60-
<p>This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the Architect theme by <a href="https://twitter.com/jasonlong">Jason Long</a>.</p>
68+
<p>This document is also available as</p>
69+
<ul>
70+
<li><a href="/">English</a></li>
71+
<li><a href="/index.cn.html">中文</a></li>
72+
</ul>
73+
<p>created by [email protected]</p>
6174
</aside>
62-
</div>
6375
</div>
76+
</div>
77+
6478

65-
66-
</body>
79+
</body>
6780
</html>

stylesheets/stylesheet.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,18 @@ a.button small {
530530
display: block;
531531
font-size: 11px;
532532
}
533-
header a.button {
533+
header a#button1 {
534534
position: absolute;
535535
top: 0;
536536
right: 0;
537537
background: transparent url(../images/github-button.png) 0 0 no-repeat;
538538
}
539+
header a#button2 {
540+
position: absolute;
541+
top: 84px;
542+
right: 0;
543+
background: transparent url(../images/github-button.png) 0 0 no-repeat;
544+
}
539545
aside a.button {
540546
display: block;
541547
width: 138px;
@@ -602,6 +608,11 @@ td {
602608
border: 1px solid #ebebeb;
603609
}
604610

611+
th {
612+
background-color: lightgrey;
613+
color: black;
614+
}
615+
605616
form {
606617
padding: 20px;
607618
background: #f2f2f2;

0 commit comments

Comments
 (0)